Closed Bug 1857911 Opened 2 years ago Closed 2 years ago

optimize nsHTMLScrollFrame::WantAsyncScroll to avoid getting the scrolled rect

Categories

(Core :: Layout: Scrolling and Overflow, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: tnikkel, Assigned: tnikkel)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(1 file)

No description provided.

Everything in this function is relatively fast except for GetVisualScrollRange/GetLayoutScrollRange, so avoid calling them unless necessary.

This function can only return true if one of the scroll directions is not overflow hidden OR visual scroll range differs from the layout scroll range.

The visual scroll range can only differs from the layout scroll range on a root scroll frame, and only then if the visual viewport size is set and is different from the scroll port size (this is just the definition of those functions).

Depends on D190415

Pushed by tnikkel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/770e71dac763 Optimize nsHTMLScrollFrame::WantAsyncScroll to avoid getting the scrolled rect. r=layout-reviewers,emilio
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
Whiteboard: [sp3]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: