[FCP++] Nodes with the same size shouldn't be ignored
This CL is to fix a bug in FCP++. FCP++ is currently using a set for ranking the nodes' size. When two node sizes are the same, the set will ignore one of them. This bug will manifest in the following scenario: * A and B element have the same size, which is the largest on the page. * When the set adds A and B, it ignores B implicitly. * A is detached from the DOM. * LCP reports a candidate. At this time, LCP should have reported B, but as B is not in the ranking set, it's ignored by LCP as well. Bug: 944248 Change-Id: I55d6856ff93191494a0bd46f7043b76c2f674b7d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1534303Reviewed-by:Steve Kobes <skobes@chromium.org> Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Cr-Commit-Position: refs/heads/master@{#644802}
Showing
Please register or sign in to comment