Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 211c2ae5026452faa383fbed2f6ef4da2cc44c59
      
https://github.com/WebKit/WebKit/commit/211c2ae5026452faa383fbed2f6ef4da2cc44c59
  Author: Etienne Segonzac <[email protected]>
  Date:   2025-06-13 (Fri, 13 Jun 2025)

  Changed paths:
    M LayoutTests/overlay-region/full-page-overflow-expected.txt
    M LayoutTests/overlay-region/full-page-overflow-scrolling-expected.txt
    A LayoutTests/overlay-region/overflow-with-proxy-expected.txt
    A LayoutTests/overlay-region/overflow-with-proxy.html
    M LayoutTests/overlay-region/snapping-expected.txt
    M Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm
    M Source/WebKit/UIProcess/API/ios/WKWebViewTestingIOS.mm
    M 
Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteScrollingCoordinatorProxyIOS.h
    M 
Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteScrollingCoordinatorProxyIOS.mm
    M Source/WebKit/UIProcess/ios/WKBaseScrollView.h
    M Source/WebKit/UIProcess/ios/WKBaseScrollView.mm

  Log Message:
  -----------
  OverlayRegions should handle OverflowScrollProxyNodes correctly
https://bugs.webkit.org/show_bug.cgi?id=294408
<rdar://141299377>

Reviewed by Simon Fraser.

When configuring a ScrollView for OverlayRegions, associate the layers
for any overflow related node (scrolling proxy).

* Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm:
(configureScrollViewWithOverlayRegionsIDs):
Call the new `_associateRelatedLayersForOverlayRegions`.
(-[WKWebView _selectOverlayRegionScrollView:]):
(-[WKWebView _resetOverlayRegions]):
(-[WKWebView _updateOverlayRegions:destroyedLayers:]):
Update method signatures for the new `OverlayRegionCandidatesMap`.

* 
Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteScrollingCoordinatorProxyIOS.h:
* 
Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteScrollingCoordinatorProxyIOS.mm:
(WebKit::RemoteScrollingCoordinatorProxyIOS::overlayRegionCandidates const):
(WebKit:: const): Deleted.
The `overlayRegionCandidates` method now returns a Map with the associated
layers for overflow related nodes.

* Source/WebKit/UIProcess/ios/WKBaseScrollView.h:
* Source/WebKit/UIProcess/ios/WKBaseScrollView.mm:
(-[WKBaseScrollView _associateRelatedLayersForOverlayRegions:with:]):
Add a stub for the new method in Additions.

* Source/WebKit/UIProcess/API/ios/WKWebViewTestingIOS.mm:
(dumpUIView):
Add an associated layers count to the dump format.
* LayoutTests/overlay-region/full-page-overflow-expected.txt:
* LayoutTests/overlay-region/full-page-overflow-scrolling-expected.txt:
* LayoutTests/overlay-region/snapping-expected.txt:
Update tests expectations with associated layers.
* LayoutTests/overlay-region/overflow-with-proxy-expected.txt: Added.
* LayoutTests/overlay-region/overflow-with-proxy.html: Added.
Add a new test.

Canonical link: https://commits.webkit.org/296201@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

Reply via email to