Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: dae59b416824a7e30ab2d6378603905188aa9c64
https://github.com/WebKit/WebKit/commit/dae59b416824a7e30ab2d6378603905188aa9c64
Author: Etienne Segonzac <[email protected]>
Date: 2025-07-09 (Wed, 09 Jul 2025)
Changed paths:
A LayoutTests/overlay-region/clipping-expected.txt
A LayoutTests/overlay-region/clipping.html
M LayoutTests/overlay-region/snapping-expected.txt
M Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm
Log Message:
-----------
OverlayRegions should take clipping into account
https://bugs.webkit.org/show_bug.cgi?id=295588
<rdar://135734728>
Reviewed by Simon Fraser.
Overlay Regions are not part of the compositing tree (they're just
passed along as Rects). This doesn't work well in cases where we size the
EventRegion based on the layer's bounds.
Take clipping and masking into account while configuring a ScrollView
with overlay regions.
* Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm:
(configureScrollViewWithOverlayRegionsIDs):
Apply clipping and masking to the Region as we walk up the overlay's
ancestors.
* LayoutTests/overlay-region/clipping-expected.txt: Added.
* LayoutTests/overlay-region/clipping.html: Added.
New test covering clipping and masking scenarios.
* LayoutTests/overlay-region/snapping-expected.txt:
Updated expectations now that the scroller clips.
Canonical link: https://commits.webkit.org/297155@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes