Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 56c34b19052f1b17a93edb6d8decbbaaef1df934
https://github.com/WebKit/WebKit/commit/56c34b19052f1b17a93edb6d8decbbaaef1df934
Author: Fujii Hironori <[email protected]>
Date: 2026-09-07 (Mon, 07 Sep 2026)
Changed paths:
A
LayoutTests/compositing/masks/clip-path-with-opaque-child-background-expected.html
A LayoutTests/compositing/masks/clip-path-with-opaque-child-background.html
M Source/WebCore/rendering/RenderLayer.cpp
Log Message:
-----------
RenderLayer::backgroundIsKnownToBeOpaqueInRect should account for clip-path
and mask
https://bugs.webkit.org/show_bug.cgi?id=322885
Reviewed by Simon Fraser.
A layer with clip-path or mask can render a non-rectangular area even
when its children fully cover the layer's bounds, so it should not be
treated as opaque based solely on its children's opacity.
*
LayoutTests/compositing/masks/clip-path-with-opaque-child-background-expected.html:
Added.
* LayoutTests/compositing/masks/clip-path-with-opaque-child-background.html:
Added.
* Source/WebCore/rendering/RenderLayer.cpp:
(WebCore::RenderLayer::backgroundIsKnownToBeOpaqueInRect):
(WebCore::RenderLayer::calculateClipRects const):
Canonical link: https://commits.webkit.org/320634@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications