Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: c4ea9380f50ce075722cc8571170c9fbd7b755ee https://github.com/WebKit/WebKit/commit/c4ea9380f50ce075722cc8571170c9fbd7b755ee Author: Matt Woodrow <mattwood...@apple.com> Date: 2024-10-03 (Thu, 03 Oct 2024)
Changed paths: M Source/WebCore/page/RemoteFrameClient.h M Source/WebCore/platform/graphics/GraphicsLayer.cpp M Source/WebCore/platform/graphics/GraphicsLayer.h M Source/WebCore/platform/graphics/GraphicsLayerClient.h M Source/WebCore/platform/graphics/LayerTreeAsTextOptions.h M Source/WebCore/rendering/RenderLayerBacking.cpp M Source/WebCore/rendering/RenderLayerBacking.h M Source/WebCore/rendering/RenderLayerCompositor.cpp M Source/WebCore/rendering/RenderLayerCompositor.h M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in M Source/WebKit/UIProcess/WebPageProxy.cpp M Source/WebKit/UIProcess/WebPageProxy.h M Source/WebKit/UIProcess/WebPageProxy.messages.in M Source/WebKit/WebProcess/WebCoreSupport/WebRemoteFrameClient.cpp M Source/WebKit/WebProcess/WebCoreSupport/WebRemoteFrameClient.h M Source/WebKit/WebProcess/WebPage/WebPage.cpp M Source/WebKit/WebProcess/WebPage/WebPage.h M Source/WebKit/WebProcess/WebPage/WebPage.messages.in Log Message: ----------- [site-isolation] Add support for remote subframes with layerTreeAsText. https://bugs.webkit.org/show_bug.cgi?id=280727 <rdar://137094708> Reviewed by Said Abou-Hallawa. Running layout tests with site-isolation enabled will require support for layerTreeAsText including remote subframes. This is largely the same as the renderTreeAsText implementation. I don't think this change makes any tests pass yet, since there's still differences between enabled/disabled. Future changes will hopefully improve this. It adds a new LayerTreeAsTextOption flag 'IncludeRootLayers'. The default behaviour is that the implicitly created 'root' layers on the main frame's RenderView's RenderLayer get skipped from the dump, but anything created when recursing into subframes is included. This flag skips this, and gets added to the flags passed between processes so that we don't skip root layer for non-main root frames. * Source/WebCore/page/RemoteFrameClient.h: * Source/WebCore/platform/graphics/GraphicsLayer.cpp: (WebCore::GraphicsLayer::dumpProperties const): (WebCore::GraphicsLayer::layerTreeAsText const): * Source/WebCore/platform/graphics/GraphicsLayer.h: (WebCore::GraphicsLayer::layerTreeAsText): * Source/WebCore/platform/graphics/GraphicsLayerClient.h: (WebCore::GraphicsLayerClient::dumpRemoteChildren const): * Source/WebCore/platform/graphics/LayerTreeAsTextOptions.h: * Source/WebCore/rendering/RenderLayerBacking.cpp: (WebCore::RenderLayerBacking::markFrontBufferVolatileForTesting): (WebCore::RenderLayerBacking::dumpRemoteChildren const): * Source/WebCore/rendering/RenderLayerBacking.h: * Source/WebCore/rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::layerTreeAsText): * Source/WebCore/rendering/RenderLayerCompositor.h: * Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in: * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::renderTreeAsTextForTesting): * Source/WebKit/UIProcess/WebPageProxy.h: * Source/WebKit/UIProcess/WebPageProxy.messages.in: * Source/WebKit/WebProcess/WebCoreSupport/WebRemoteFrameClient.cpp: (WebKit::WebRemoteFrameClient::renderTreeAsText): (WebKit::WebRemoteFrameClient::layerTreeAsText): * Source/WebKit/WebProcess/WebCoreSupport/WebRemoteFrameClient.h: * Source/WebKit/WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::renderTreeAsTextForTesting): (WebKit::WebPage::layerTreeAsTextForTesting): * Source/WebKit/WebProcess/WebPage/WebPage.h: * Source/WebKit/WebProcess/WebPage/WebPage.messages.in: Canonical link: https://commits.webkit.org/284653@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes