Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6c09de98275732ed84e2bd9859dc3c49732babea
      
https://github.com/WebKit/WebKit/commit/6c09de98275732ed84e2bd9859dc3c49732babea
  Author: Lily Spiniolas <[email protected]>
  Date:   2026-03-11 (Wed, 11 Mar 2026)

  Changed paths:
    M Source/WebCore/platform/ScrollView.cpp
    M Tools/TestWebKitAPI/Tests/mac/ScrollbarTests.mm

  Log Message:
  -----------
  Obscured content insets may obscure vertical scrollbars
https://bugs.webkit.org/show_bug.cgi?id=309639
rdar://172224593

Reviewed by Wenson Hsieh, Abrar Rahman Protyasha, and Aditya Keerthi.

When an obscured content inset exists on the same edge as the
vertical scrollbar, the scrollbar does not shift accordingly.

Shift the vertical scrollbar by the appropriate content
inset amount in ScrollView::updateScrollbars.

Test: Tools/TestWebKitAPI/Tests/mac/ScrollbarTests.mm

* Source/WebCore/platform/ScrollView.cpp:
(WebCore::ScrollView::updateScrollbars):
* Tools/TestWebKitAPI/Tests/mac/ScrollbarTests.mm:
(TestWebKitAPI::TEST(ScrollbarTests, 
VerticalScrollbarXPositionAccountsForObscuredContentInsets)):

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



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

Reply via email to