-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Overlay regions do not correctly handle sticky positioned scrolling n…
…odes https://bugs.webkit.org/show_bug.cgi?id=243973 <rdar://98640826> Reviewed by Tim Horton. Sticky node regions should be added to the overlay regions but their rectangles can move during scrolling. Also fixed or sticky rectangles can change during page zoom. To support this, instead of storing a list of rectangles, store a list of layer IDs with event regions and then compute the rectangles. * Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm: (addOverlayEventRegions): Store only the layer ID. (-[WKWebView _updateOverlayRegions:destroyedLayers:]): Recompute the rectangles from the current frames of the nodes whenever the layer properties change. Scrolling and page zoom where this would be impacted both trigger a change in layer properties. * Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.h: Renamed function. * Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeHost.h: (WebKit::RemoteLayerTreeHost::overlayRegionIDs const): (WebKit::RemoteLayerTreeHost::updateOverlayRegionIDs): Renamed. * Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteScrollingCoordinatorProxyIOS.mm: (WebKit::RemoteScrollingCoordinatorProxy::connectStateNodeLayers): Call renamed function. Canonical link: https://commits.webkit.org/253603@main
- Loading branch information
1 parent
7199d38
commit 649ae3d
Showing
4 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters