[webkit-changes] [WebKit/WebKit] 2b36e7: Support CSS unit literals in Style numeric types
Sam Weinig
noreply at github.com
Mon Feb 3 17:35:17 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2b36e733418e14d34a0f89670800352547a2f3da
https://github.com/WebKit/WebKit/commit/2b36e733418e14d34a0f89670800352547a2f3da
Author: Sam Weinig <sam at webkit.org>
Date: 2025-02-03 (Mon, 03 Feb 2025)
Changed paths:
M Source/WebCore/css/values/primitives/CSSPrimitiveNumericUnits.h
M Source/WebCore/html/HTMLInputElement.cpp
M Source/WebCore/style/values/backgrounds/StyleBoxShadow.cpp
M Source/WebCore/style/values/primitives/StylePosition.cpp
M Source/WebCore/style/values/primitives/StylePrimitiveNumeric.h
M Source/WebCore/style/values/primitives/StylePrimitiveNumericTypes+Blending.h
M Source/WebCore/style/values/primitives/StylePrimitiveNumericTypes+Evaluation.h
M Source/WebCore/style/values/shapes/StyleRectFunction.cpp
M Tools/TestWebKitAPI/Tests/WebCore/StyleGradient.cpp
Log Message:
-----------
Support CSS unit literals in Style numeric types
https://bugs.webkit.org/show_bug.cgi?id=286696
Reviewed by Darin Adler and Antti Koivisto.
Makes it possible to initialize Style primitive numeric types
using CSS unit literals like 100_css_px. Additionally adds support
for basic arithmetic to simplify a few call sites.
* Source/WebCore/css/values/primitives/CSSPrimitiveNumericUnits.h:
* Source/WebCore/html/HTMLInputElement.cpp:
* Source/WebCore/style/values/backgrounds/StyleBoxShadow.cpp:
* Source/WebCore/style/values/primitives/StylePosition.cpp:
* Source/WebCore/style/values/primitives/StylePrimitiveNumericTypes+Blending.h:
* Source/WebCore/style/values/primitives/StylePrimitiveNumericTypes+Evaluation.h:
* Source/WebCore/style/values/primitives/StylePrimitiveNumericTypes.h:
* Source/WebCore/style/values/shapes/StyleRectFunction.cpp:
* Tools/TestWebKitAPI/Tests/WebCore/StyleGradient.cpp:
Canonical link: https://commits.webkit.org/289759@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list