Add Percentage, Integer, Number and Angle types.
<rdar://problem/103184764>
Created attachment 463963 [details] Patch
Created attachment 463964 [details] Patch
Created attachment 463967 [details] Patch
Comment on attachment 463967 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=463967&action=review > Source/WebCore/css/CSSCustomPropertyValue.h:46 > + struct NumericSyntaxValue { > + double value; > + CSSUnitType unitType; > + > + bool operator==(const NumericSyntaxValue&) const = default; > + }; > + using VariantValue = std::variant<std::monostate, Ref<CSSVariableReferenceValue>, CSSValueID, Ref<CSSVariableData>, Length, NumericSyntaxValue>; I want to use this kind of type for some other purposes too. Like when CSSProperties.json writes out "initial values", I want a constexpr value that can be a CSSValueID or numeric syntax.
Committed 257678@main (fba580ad5100): <https://commits.webkit.org/257678@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 463967 [details].