RESOLVED FIXED 246638
[leading-trim] Add support for parsing "leading-trim" CSS property
https://bugs.webkit.org/show_bug.cgi?id=246638
Summary [leading-trim] Add support for parsing "leading-trim" CSS property
zalan
Reported 2022-10-17 10:01:22 PDT
ssia
Attachments
Patch (11.48 KB, patch)
2022-10-17 10:04 PDT, zalan
no flags
Patch (13.85 KB, patch)
2022-11-27 16:12 PST, zalan
no flags
Patch (16.63 KB, patch)
2022-11-27 20:39 PST, zalan
no flags
[fast-cq]Patch (20.24 KB, patch)
2022-11-28 07:11 PST, zalan
no flags
zalan
Comment 1 2022-10-17 10:04:49 PDT
zalan
Comment 2 2022-10-17 10:05:08 PDT
no tests yet.
Tim Nguyen (:ntim)
Comment 3 2022-10-17 10:36:16 PDT
Comment on attachment 463035 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=463035&action=review > Source/WebCore/rendering/style/StyleRareNonInheritedData.h:250 > + unsigned leadingTrim : 3; // LeadingTrim This fits in 2
Tim Nguyen (:ntim)
Comment 4 2022-10-17 10:37:15 PDT
(Also, does this need a `settings-flag` field in CSSProperties.json and an associated preference?)
Antti Koivisto
Comment 5 2022-10-17 11:00:25 PDT
Comment on attachment 463035 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=463035&action=review > Source/WebCore/css/CSSProperties.json:2959 > + "leading-trim": { > + "values": [ > + "normal", > + "start", > + "end", > + "both" > + ], > + "specification": { > + "category": "css-inline", > + "url": "https://www.w3.org/TR/css-inline-3/#leading-trim" > + } > + }, This should probably have a setting which can be given using "settings-flag" codegen option.
Antti Koivisto
Comment 6 2022-10-18 08:00:55 PDT
Comment on attachment 463035 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=463035&action=review >> Source/WebCore/rendering/style/StyleRareNonInheritedData.h:250 >> + unsigned leadingTrim : 3; // LeadingTrim > > This fits in 2 You should initialise this field. It also needs to be present in the copy constructor and operator==.
Antti Koivisto
Comment 7 2022-10-18 08:06:29 PDT
Comment on attachment 463035 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=463035&action=review > Source/WebCore/css/CSSPrimitiveValueMappings.h:1089 > +template<> inline CSSPrimitiveValue::CSSPrimitiveValue(LeadingTrim e) "e" > Source/WebCore/css/CSSPrimitiveValueMappings.h:1106 > + break; > + } Could ASSERT_NOT_REACHED here
Radar WebKit Bug Importer
Comment 8 2022-10-24 10:02:20 PDT
zalan
Comment 9 2022-11-27 16:12:18 PST
zalan
Comment 10 2022-11-27 20:39:42 PST
zalan
Comment 11 2022-11-28 07:11:16 PST
Created attachment 463760 [details] [fast-cq]Patch
EWS
Comment 12 2022-11-28 07:33:00 PST
Committed 257070@main (8fe0bbfa84f9): <https://commits.webkit.org/257070@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 463760 [details].
Note You need to log in before you can comment on or make changes to this bug.