Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: dd8cbf1b99322f5d193b715dd1628c42a02aa859
https://github.com/WebKit/WebKit/commit/dd8cbf1b99322f5d193b715dd1628c42a02aa859
Author: lilly <[email protected]>
Date: 2026-06-29 (Mon, 29 Jun 2026)
Changed paths:
M Source/WebCore/platform/graphics/FloatSize.h
Log Message:
-----------
corner-shape: Add vector math helpers to FloatSize
https://bugs.webkit.org/show_bug.cgi?id=317938
rdar://180739848
Reviewed by Simon Fraser.
Adds two geometry helpers to FloatSize needed for computing corner contour
geometry per the CSS
Borders 4 spec. normalized() returns a unit vector in the same direction
(returning the original
unchanged if its length is zero), and perpendicular() returns a 90°
counter-clockwise rotation.
No new tests needed
* Source/WebCore/platform/graphics/FloatSize.h:
(WebCore::FloatSize::normalized const):
(WebCore::FloatSize::perpendicular const):
Canonical link: https://commits.webkit.org/316113@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications