[webkit-changes] [WebKit/WebKit] c94f5d: [css-overflow] Implement scrollbar-gutter on viewp...

Nikos Mouchtaris noreply at github.com
Fri Aug 23 09:47:38 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c94f5d66b46909bb9cc72345adf97a6739f36f90
      https://github.com/WebKit/WebKit/commit/c94f5d66b46909bb9cc72345adf97a6739f36f90
  Author: Nikolaos Mouchtaris <nmouchtaris at apple.com>
  Date:   2024-08-23 (Fri, 23 Aug 2024)

  Changed paths:
    A LayoutTests/fast/scrolling/mac/scrollbars/scrollbar-gutter-root-both-edges-expected.html
    A LayoutTests/fast/scrolling/mac/scrollbars/scrollbar-gutter-root-both-edges.html
    A LayoutTests/fast/scrolling/mac/scrollbars/scrollbar-gutter-root-expected.html
    A LayoutTests/fast/scrolling/mac/scrollbars/scrollbar-gutter-root.html
    M LayoutTests/fast/scrolling/mac/scrollbars/scrollbar-state-expected.txt
    M LayoutTests/fast/scrolling/mac/scrollbars/scrollbar-state.html
    M LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/scrollbar-gutter-propagation-001-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/scrollbar-gutter-propagation-003-expected.txt
    A LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-overflow/scrollbar-gutter-propagation-001-expected.txt
    A LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-overflow/scrollbar-gutter-propagation-003-expected.txt
    M Source/WebCore/page/LocalFrameView.cpp
    M Source/WebCore/page/LocalFrameView.h
    M Source/WebCore/platform/ScrollView.cpp
    M Source/WebCore/platform/ScrollableArea.h
    M Source/WebCore/rendering/RenderLayerCompositor.cpp

  Log Message:
  -----------
  [css-overflow] Implement scrollbar-gutter on viewports
https://bugs.webkit.org/show_bug.cgi?id=257606
rdar://110468611

Reviewed by Simon Fraser.

Updates scrollbar gutter implementation to work for viewports. When setting scrollbar gutter
on the viewport, shrink the size of the visible content rect, and when both-edges is present,
shift the clip layer over like we do when placing the scrollbar on the left.

* Source/WebCore/platform/ScrollView.cpp:
(WebCore::ScrollView::documentScrollPositionRelativeToViewOrigin const):
(WebCore::ScrollView::verticalScrollbarWidth const):
(WebCore::ScrollView::horizontalScrollbarHeight const):
(WebCore::ScrollView::locationOfContents const):
* Source/WebCore/platform/ScrollView.h:
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::includeVerticalScrollbarSize const):
(WebCore::RenderBox::verticalScrollbarWidth const):

Canonical link: https://commits.webkit.org/282661@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list