Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4e251ad1b7a363550887ef7eaa04ca890dee0807
https://github.com/WebKit/WebKit/commit/4e251ad1b7a363550887ef7eaa04ca890dee0807
Author: Joshua Hoffman <[email protected]>
Date: 2026-03-12 (Thu, 12 Mar 2026)
Changed paths:
M LayoutTests/platform/mac-wk2/TestExpectations
M
LayoutTests/platform/mac-wk2/accessibility/content-inset-scrollview-frame.html
M Source/WebCore/accessibility/AccessibilityScrollView.cpp
Log Message:
-----------
AX: Fix content-inset-scrollview-frame.html with ACCESSIBILITY_LOCAL_FRAME
enabled
https://bugs.webkit.org/show_bug.cgi?id=309799
rdar://172392672
Reviewed by Tyler Wilcock.
This PR fixes content inset handling with ACCESSIBILITY_LOCAL_FRAME enabled.
The root
scroll view's elementRect() was zeroing the entire rect location, ignoring the
content
inset offset applied by frameRectShrunkByInset. Now, we subtract only the
scroll view's
location (the iframe position, when relevant), preserving the inset offset.
The content-inset-scrollview-frame.html test was also updated to wait for
asynchronous
frame geometry to be populated.
* LayoutTests/platform/mac-wk2/TestExpectations:
*
LayoutTests/platform/mac-wk2/accessibility/content-inset-scrollview-frame.html:
* Source/WebCore/accessibility/AccessibilityScrollView.cpp:
(WebCore::AccessibilityScrollView::elementRect const):
Canonical link: https://commits.webkit.org/309171@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications