Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1e0f90c0a4748d952997071013e3836e5306dd1d
https://github.com/WebKit/WebKit/commit/1e0f90c0a4748d952997071013e3836e5306dd1d
Author: Matt Woodrow <[email protected]>
Date: 2024-09-29 (Sun, 29 Sep 2024)
Changed paths:
A LayoutTests/http/tests/site-isolation/page-scale-expected.html
A LayoutTests/http/tests/site-isolation/page-scale.html
A LayoutTests/http/tests/site-isolation/resources/green-square.html
M Source/WebCore/loader/HistoryController.cpp
M Source/WebCore/page/Page.cpp
M Source/WebCore/rendering/RenderLayerBacking.cpp
M Source/WebCore/rendering/RenderLayerBacking.h
M Source/WebCore/rendering/RenderLayerCompositor.cpp
M Source/WebCore/rendering/RenderObject.cpp
M Source/WebKit/UIProcess/API/C/WKPage.cpp
M Source/WebKit/UIProcess/API/Cocoa/WKWebViewTesting.mm
M Source/WebKit/UIProcess/ViewGestureController.cpp
M Source/WebKit/UIProcess/WebPageProxy.cpp
M Source/WebKit/UIProcess/WebPageProxy.h
M Source/WebKit/UIProcess/WebPageProxy.messages.in
M Source/WebKit/UIProcess/WebPageProxyTesting.cpp
M Source/WebKit/UIProcess/WebPageProxyTesting.h
M Source/WebKit/UIProcess/mac/WKFullScreenWindowController.mm
M Source/WebKit/WebProcess/WebPage/WebPage.cpp
M Source/WebKit/WebProcess/WebPage/WebPage.h
M Source/WebKit/WebProcess/WebPage/WebPage.messages.in
M Source/WebKit/WebProcess/WebPage/WebPageTesting.cpp
M Source/WebKit/WebProcess/WebPage/WebPageTesting.h
M Source/WebKit/WebProcess/WebPage/WebPageTesting.messages.in
Log Message:
-----------
[site-isolation] Send pageScaleFactor changes to all relevant processes.
https://bugs.webkit.org/show_bug.cgi?id=280040
<rdar://136338665>
Reviewed by Charlie Wolfe.
Page scale changes can be initiated from both the WebProcess, as well as the UI
process.
Adds mechanisms to share to all processes from the UI process, as well as
sharing to all other web process when initiated from there.
Changes the TestRunner setter to use the same WebPageProxy setter as other API
endpoints do, and adds a new test using a site-isolated subframe.
Also fixes Page::setPageScaleFactor to handle having multiple (and non-main)
root frames.
* LayoutTests/http/tests/site-isolation/page-scale-expected.html: Added.
* LayoutTests/http/tests/site-isolation/page-scale.html: Added.
* LayoutTests/http/tests/site-isolation/resources/green-square.html: Added.
* Source/WebCore/loader/HistoryController.cpp:
(WebCore::HistoryController::restoreScrollPositionAndViewState):
* Source/WebCore/page/Page.cpp:
(WebCore::Page::setPageScaleFactor):
* Source/WebCore/rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::RenderLayerBacking):
(WebCore::RenderLayerBacking::createPrimaryGraphicsLayer):
* Source/WebCore/rendering/RenderLayerBacking.h:
* Source/WebCore/rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::ensureRootLayer):
* Source/WebCore/rendering/RenderObject.cpp:
(WebCore::printPaintOrderTreeForLiveDocuments):
(WebCore::printRenderTreeForLiveDocuments):
(WebCore::printLayerTreeForLiveDocuments):
(WebCore::printGraphicsLayerTreeForLiveDocuments):
* Source/WebKit/UIProcess/API/C/WKPage.cpp:
(WKPageSetScaleFactor):
(WKPageSetPageScaleFactorForTesting):
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewTesting.mm:
(-[WKWebView _setPageScale:withOrigin:]):
* Source/WebKit/UIProcess/ViewGestureController.cpp:
(WebKit::ViewGestureController::applyMagnification):
(WebKit::ViewGestureController::endMagnificationGesture):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::scalePage):
(WebKit::WebPageProxy::scalePageInViewCoordinates):
(WebKit::WebPageProxy::scalePageRelativeToScrollPosition):
(WebKit::WebPageProxy::scaleView):
(WebKit::WebPageProxy::pageScaleFactorDidChange):
(WebKit::WebPageProxy::viewScaleFactorDidChange):
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/UIProcess/WebPageProxy.messages.in:
* Source/WebKit/UIProcess/WebPageProxyTesting.cpp:
(WebKit::WebPageProxyTesting::setPageScaleFactor): Deleted.
* Source/WebKit/UIProcess/WebPageProxyTesting.h:
* Source/WebKit/UIProcess/mac/WKFullScreenWindowController.mm:
(-[WKFullScreenWindowController enterFullScreen:]):
(-[WKFullScreenWindowController finishedEnterFullScreenAnimation:]):
(-[WKFullScreenWindowController
finishedExitFullScreenAnimationAndExitImmediately:]):
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::didScaleView):
(WebKit::WebPage::scaleView):
* Source/WebKit/WebProcess/WebPage/WebPage.h:
* Source/WebKit/WebProcess/WebPage/WebPage.messages.in:
* Source/WebKit/WebProcess/WebPage/WebPageTesting.cpp:
(WebKit::WebPageTesting::setPageScaleFactor): Deleted.
* Source/WebKit/WebProcess/WebPage/WebPageTesting.h:
* Source/WebKit/WebProcess/WebPage/WebPageTesting.messages.in:
Canonical link: https://commits.webkit.org/284435@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