Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b85f5f7e38c87979c82e78cdd3cfef2fc1528ce8
https://github.com/WebKit/WebKit/commit/b85f5f7e38c87979c82e78cdd3cfef2fc1528ce8
Author: lilly <[email protected]>
Date: 2026-07-02 (Thu, 02 Jul 2026)
Changed paths:
M LayoutTests/platform/glib/TestExpectations
M LayoutTests/platform/gtk/TestExpectations
M Source/WebCore/platform/graphics/CornerShapeUtilities.cpp
Log Message:
-----------
corner-shape: Implement borderContourPath for notch corner shapes in
CornerShapeUtilities
https://bugs.webkit.org/show_bug.cgi?id=318240
rdar://181048587
Reviewed by Simon Fraser.
Implements the borderContourPath stub for notch (superellipse(-∞)) corners.
Introduces a Corner struct holding the four geometric vertices
of a corner: start, outer, end, and center, which represent the contour
traversal roles of the corner's bounding rect vertices in
clockwise order. makeCorner maps a CornerInput into the correct vertex
orientation per BoxCorner, and adjustCornerForInset offsets the
geometry to account for border widths. addCurvedCorner draws notch corners as
two line segments through the center vertex. buildCorners
applies these transforms across all four corners and borderContourPath traces
the full contour clockwise starting from the top-right corner's
start vertex. Bevel, scoop, round, and the general superellipse curve are left
as TODOs for follow-up patches.
Passes tests that were written in previous commit 315899@main
* LayoutTests/platform/glib/TestExpectations:
* LayoutTests/platform/gtk/TestExpectations:
* Source/WebCore/platform/graphics/CornerShapeUtilities.cpp:
(WebCore::borderContourPath):
Canonical link: https://commits.webkit.org/316397@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications