Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a6d9559ef8d07843e9d465b7651228cb8b301ede
https://github.com/WebKit/WebKit/commit/a6d9559ef8d07843e9d465b7651228cb8b301ede
Author: lilly <[email protected]>
Date: 2026-09-21 (Mon, 21 Sep 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/css-borders/corner-shape/corner-shape-clip-path-border-box-expected.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-borders/corner-shape/corner-shape-clip-path-border-box-ref.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-borders/corner-shape/corner-shape-clip-path-border-box.html
M Source/WebCore/rendering/ClipPathPaintScope.cpp
M Source/WebCore/rendering/shapes/BoxLayoutShape.cpp
M Source/WebCore/rendering/shapes/BoxLayoutShape.h
Log Message:
-----------
[corner-shape] clip-path with a <geometry-box> ignores corner-shape
https://bugs.webkit.org/show_bug.cgi?id=324646
Reviewed by Simon Fraser.
computeClipPath() built the <geometry-box> clip from
computeRoundedRectForBoxShape(),
which returns a LayoutRoundedRect and therefore cannot represent scoop, bevel,
notch
or superellipse corners. Use computeGeometryForBoxShape() and clip to
BorderShape::pathForOuterShape() or pathForInnerShape(), chosen by the
geometry's
edge, when the border has a non-round corner shape.
Test:
imported/w3c/web-platform-tests/css/css-borders/corner-shape/corner-shape-clip-path-border-box.html
*
LayoutTests/imported/w3c/web-platform-tests/css/css-borders/corner-shape/corner-shape-clip-path-border-box-expected.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-borders/corner-shape/corner-shape-clip-path-border-box-ref.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-borders/corner-shape/corner-shape-clip-path-border-box.html:
Added.
* Source/WebCore/rendering/ClipPathPaintScope.cpp:
(WebCore::ClipPathPaintScope::computeClipPath):
* Source/WebCore/rendering/shapes/BoxLayoutShape.cpp:
(WebCore::computeRoundedRectForBoxShape): Deleted.
* Source/WebCore/rendering/shapes/BoxLayoutShape.h:
Canonical link: https://commits.webkit.org/321557@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications