Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 6a3a1914b4c927b42e0071e2b7dd645acd6340f5 https://github.com/WebKit/WebKit/commit/6a3a1914b4c927b42e0071e2b7dd645acd6340f5 Author: Aditya Keerthi <akeer...@apple.com> Date: 2025-02-04 (Tue, 04 Feb 2025)
Changed paths: M Source/WebCore/platform/graphics/GraphicsLayerClient.h M Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp M Source/WebCore/rendering/RenderLayerBacking.cpp M Source/WebCore/rendering/RenderLayerCompositor.cpp M Source/WebCore/rendering/RenderLayerCompositor.h Log Message: ----------- Allow backdrop blending outside of transparent webviews https://bugs.webkit.org/show_bug.cgi?id=286939 rdar://144100719 Reviewed by Matt Woodrow. It is desirable for `WKWebView` clients that use a transparent webview to be able to use `backdrop-filter` / `-apple-visual-effect` in order to apply effects to content behind the webview. This is currently not possible as the main frame's layer is made the backdrop root. Fix by preventing the main frame's layer from being the backdrop root if the view's base background color is transparent. Thanks to Matt Woodrow for the original patch. * Source/WebCore/platform/graphics/GraphicsLayerClient.h: (WebCore::GraphicsLayerClient::backdropRootIsOpaque const): * Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::flushCompositingState): (WebCore::GraphicsLayerCA::recursiveCommitChanges): * Source/WebCore/rendering/RenderLayerBacking.cpp: (WebCore::RenderLayerBacking::updateBackdropRoot): * Source/WebCore/rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::backdropRootIsOpaque const): * Source/WebCore/rendering/RenderLayerCompositor.h: Canonical link: https://commits.webkit.org/289838@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