| Summary: | [@property] Add more syntax types | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Antti Koivisto <koivisto> | ||||||||
| Component: | CSS | Assignee: | Antti Koivisto <koivisto> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | darin, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, macpherson, menard, webkit-bug-importer, zalan | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 189692 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Antti Koivisto
2022-12-09 10:06:55 PST
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]. |