-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Improve resolving of scrollbar-gutter style #15666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve resolving of scrollbar-gutter style #15666
Conversation
|
EWS run on previous version of this PR (hash addc1f9)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The renderView check is surprising enough that it needs a comment I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll be honest I don't actually know what that checks for. This code is a copy of scrollbarWidthStyle which was a copy of verticalOverscrollBehavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will compile locally without it for both gutter and width and see if it breaks anything
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't seem to be important will remove it. Will also make a follow up to see if its needed for scrollbar width (just tested and it doesn't seem to be) or the overscrollBehavior functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addc1f9 to
a2c84d4
Compare
|
EWS run on previous version of this PR (hash a2c84d4)
|
a2c84d4 to
0cd1553
Compare
|
EWS run on current version of this PR (hash 0cd1553)
|
https://bugs.webkit.org/show_bug.cgi?id=259014 Reviewed by Darin Adler. Move the resolution of scrollbar-gutter styles to its own function and implement for RenderLayerScrollableArea and LocalFrameView. This will allow implementation of scrollbar-gutter on viewports. This patch has no behaviour changes. * Source/WebCore/page/LocalFrameView.cpp: (WebCore::LocalFrameView::scrollbarGutterStyle const): * Source/WebCore/page/LocalFrameView.h: * Source/WebCore/platform/ScrollableArea.cpp: (WebCore::ScrollableArea::scrollbarGutterStyle const): * Source/WebCore/platform/ScrollableArea.h: * Source/WebCore/rendering/RenderLayerScrollableArea.cpp: (WebCore::RenderLayerScrollableArea::verticalScrollbarWidth const): (WebCore::RenderLayerScrollableArea::horizontalScrollbarHeight const): (WebCore::RenderLayerScrollableArea::scrollbarGutterStyle const): * Source/WebCore/rendering/RenderLayerScrollableArea.h: Canonical link: https://commits.webkit.org/265882@main
0cd1553 to
7636238
Compare
|
Committed 265882@main (7636238): https://commits.webkit.org/265882@main Reviewed commits have been landed. Closing PR #15666 and removing active labels. |
7636238
0cd1553
🧪 gtk-wk2