Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bda4f2c6e17982921429a9c256ffd42c9d93d801
      
https://github.com/WebKit/WebKit/commit/bda4f2c6e17982921429a9c256ffd42c9d93d801
  Author: Etienne Segonzac <[email protected]>
  Date:   2025-09-18 (Thu, 18 Sep 2025)

  Changed paths:
    M Source/WebKit/UIProcess/API/ios/WKWebViewIOS.h
    M Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm
    M Source/WebKit/UIProcess/ios/PageClientImplIOS.mm

  Log Message:
  -----------
  [visionOS] The overlayRegionsEnabled preference should apply instantly 
without waiting for the next layer tree commit
https://bugs.webkit.org/show_bug.cgi?id=298961
<rdar://160387469>

Reviewed by Mike Wyrzykowski.

This preference can be toggled on or off on a live web view and we want
it to take effect instantly.
Extract an `_updateOverlayRegions` method we can call from the
PageClient when preferences change instead of relying on the
`_didComitLayerTree` path.

* Source/WebKit/UIProcess/API/ios/WKWebViewIOS.h:
Expose `_updateOverlayRegions`.
Remove `_updateOverlayRegionsForCutomContentView` since it's not used
anymore.
* Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm:
(-[WKWebView _didCommitLayerTree:]):
Always remove destroyed layers from the ScrollCoordinatorProxy tracking
regardless of the value of the preference (adding them isn't dependent on
the pref).
Call `_updateOverlayRegions` when needed.
(-[WKWebView _updateOverlayRegions]):
New method.
(-[WKWebView _resetOverlayRegions]):
No change, re-ordered.
(-[WKWebView _updateScrollCoordinatorProxyForOverlayRegions:]):
(-[WKWebView _updateOverlayRegions:destroyedLayers:]): Deleted.
(-[WKWebView _updateOverlayRegionsForCustomContentView]): Deleted.
* Source/WebKit/UIProcess/ios/PageClientImplIOS.mm:
(WebKit::PageClientImpl::preferencesDidChange):
Trigger `_udpateOverlayRegions` when the preferences change.

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