Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bb4229348e91c1a02b0bd8231bcb54a700f51fc3
https://github.com/WebKit/WebKit/commit/bb4229348e91c1a02b0bd8231bcb54a700f51fc3
Author: Phipson Lee <[email protected]>
Date: 2025-07-31 (Thu, 31 Jul 2025)
Changed paths:
M Source/WebKit/UIProcess/API/ios/WKWebViewIOS.h
M Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm
M Source/WebKit/UIProcess/Model/ModelPresentationManagerProxy.h
M Source/WebKit/UIProcess/Model/ModelPresentationManagerProxy.mm
M Source/WebKit/UIProcess/ios/WKContentView.h
M Source/WebKit/UIProcess/ios/WKContentView.mm
Log Message:
-----------
Apply transform3D updates for model-specific layers
https://bugs.webkit.org/show_bug.cgi?id=296668
rdar://154223351
Reviewed by Ada Chan.
This PR introduces a patch to target the transform3D changes we made
specifically
for model layers. Previously, we applied the transform3D to the web view to
scale models such that they would update based on page scale. With this
targeted fix,
we ensure that any non-model layers are unaffected by the transform3D changes
we apply,
which also means that pages without model elements remain unchanged.
* Source/WebKit/UIProcess/API/ios/WKWebViewIOS.h:
* Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm:
(-[WKWebView scrollViewDidZoom:]):
(-[WKWebView _willInvalidateDraggedModelWithContainerView:]):
- Routed calls through to the WKContentView to get access to the
ModelPresentationManagerProxy
(-[WKWebView _setWebViewTransform3DForModel:]): Deleted.
* Source/WebKit/UIProcess/Model/ModelPresentationManagerProxy.h:
* Source/WebKit/UIProcess/Model/ModelPresentationManagerProxy.mm:
(WebKit::ModelPresentationManagerProxy::setUpModelView):
- Added a call to update the model view layer's z scale when we first create
the layer
(WebKit::ModelPresentationManagerProxy::pageScaleDidChange):
- Added a call to update the model view layer's z scale when we change the page
scale
* Source/WebKit/UIProcess/ios/WKContentView.h:
* Source/WebKit/UIProcess/ios/WKContentView.mm:
(-[WKContentView _setTransform3DForModelView:]):
- Adds a call to the ModelPresentationManagerProxy to update the model view
layer based
on the page scale
Canonical link: https://commits.webkit.org/298100@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