Closed Bug 1722968 Opened 3 years ago Closed 3 years ago

Add an optimization for GetAllInFlowRects to avoid expensive ancestor lookups in DOMIntersectionObserver.

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox92 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

No description provided.

Part of the issue with the profile in the blocked bug is that 30% of the
time is spent in nsLayoutUtils::FindNearestCommonAncestorFrame from
DOMIntersectionObserver::Update. That shouldn't be needed since in most
cases we know we're an ancestor.

We have an optimization for the root frame but DOMIntersectionObserver
keeps its rects relative to target. So we only need to do the
expensive transform for IB splits / fragmented flows.

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e5c5516d8b08
Add an optimization for GetAllInFlowRects to avoid expensive ancestor lookups in DOMIntersectionObserver. r=jwatt
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
Regressions: 1724237
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: