Refactor around mScrollPort and TryLayout in scroll frame implementation
Categories
(Core :: Layout: Scrolling and Overflow, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox97 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
Details
Attachments
(3 files)
These patches are written when I investigate the scrollbar implementation for bug 1715112. All the patches are refactors, and shouldn't change the behavior.
Assignee | ||
Comment 1•4 years ago
|
||
This patch ports the mScrollPort refactor Boris wrote in
https://phabricator.services.mozilla.com/D129100 with my tweaks.
Assignee | ||
Comment 2•4 years ago
|
||
This patch is inspired by ScrollFrameHelper::GetActualScrollbarSizes()
that
uses a nsMargin to represent the space occupied by scrollbar.
In bug 1715112, TryLayout is going to consider the space occupied by the
scrollbar gutter. Hence the variable name with gutter in it just to avoid change
the variable name again.
Depends on D132662
Assignee | ||
Comment 3•4 years ago
|
||
The static AddRemoveScrollbar() helper is meant to adjust the scroll port and
test whether the scrollbar fits, but its interface is obscure. By expanding the
helper in-place, the code should now become easy to follow, and we can also
remove the wordaround that sets the bool:1 bitfield.
Comment 5•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f651c6b3310d
https://hg.mozilla.org/mozilla-central/rev/9cd0be79e424
https://hg.mozilla.org/mozilla-central/rev/6ec8558fc869
Description
•