[IntersectionObserver] Refactor to avoid ancestor frame tree walk
Previously, the dirty flags to IntersectionObservation::Compute were computed by doing a walk up the ancestor tree. This is silly, since the IntersectionObserver algorithm runs in a top-down tree walk. This CL propagates ancestor frame flags down to child frames to avoid the tree walk. R=chrishtr@chromium.org Change-Id: I09f95696ce4d22c15ee76bc0a0ecc4e12778284c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1501492 Commit-Queue: Stefan Zager <szager@chromium.org> Reviewed-by:Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/master@{#637829}
Showing
Please register or sign in to comment