Closed
Bug 1666991
Opened 5 years ago
Closed 5 years ago
remove PresShell::GetNearestScrollableFrame
Categories
(Core :: Layout: Scrolling and Overflow, defect)
Core
Layout: Scrolling and Overflow
Tracking
()
RESOLVED
FIXED
83 Branch
| Tracking | Status | |
|---|---|---|
| firefox83 | --- | fixed |
People
(Reporter: tnikkel, Assigned: tnikkel)
References
Details
Attachments
(1 file)
No description provided.
| Assignee | ||
Comment 1•5 years ago
|
||
The current formulation is inconsistent. If you call it with ScrollableDirection::Either it goes into nsLayoutUtils::GetNearestScrollableFrame which will return the first scroll frame with a non-hidden overflow. If you call it with any other ScrollableDirection it calls nsLayoutUtils::GetNearestScrollableFrameForDirection which returns the first scrollframe it finds that has non-hidden overflow AND has at least one dev pixel of scroll range.
So remove that function and call nsLayoutUtils::GetNearestScrollableFrameForDirection directly. This is a slight change of behaviour but it seems desirable for all callers.
Pushed by tnikkel@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9f533efa80b7
Remove PresShell::GetNearestScrollableFrame. r=kats
Comment 3•5 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox83:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•