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)
Core
Layout: Scrolling and Overflow
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.
Assignee | ||
Comment 1•2 years ago
|
||
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
Comment 3•2 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 2 years ago
status-firefox120:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
Updated•2 years ago
|
Whiteboard: [sp3]
Updated•2 years ago
|
See Also: → https://mozilla-hub.atlassian.net/browse/SP3-627
You need to log in
before you can comment on or make changes to this bug.
Description
•