Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 37b50f4cc7736485389df1585332ea03621a3e5b
https://github.com/WebKit/WebKit/commit/37b50f4cc7736485389df1585332ea03621a3e5b
Author: lilly <[email protected]>
Date: 2026-07-22 (Wed, 22 Jul 2026)
Changed paths:
M Source/WebCore/platform/graphics/BezierUtilities.cpp
M Source/WebCore/platform/graphics/FloatRect.h
Log Message:
-----------
Add FloatRect::edges() helper returning the rect's four edges as directed
segments
https://bugs.webkit.org/show_bug.cgi?id=319997
rdar://182933375
Reviewed by Simon Fraser.
Add a FloatRect::edges() convenience accessor that returns the rectangle's
four edges as RectEdges<std::pair<FloatPoint, FloatPoint>>, each edge being
a { start corner, end corner } pair wound clockwise (top -> right -> bottom ->
left)
and indexable by BoxSide. Utilized in BezierUtilities and will be utilized
in CornerShapeUtilities
New tests are not neccesary for this change
* Source/WebCore/platform/graphics/BezierUtilities.cpp:
(WebCore::trimBezierToRect):
* Source/WebCore/platform/graphics/FloatRect.h:
(WebCore::FloatRect::edges const):
Canonical link: https://commits.webkit.org/317739@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications