| Summary: | [leading-trim] Add support for parsing "leading-trim" CSS property | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | zalan <zalan> | ||||||||||
| Component: | Layout and Rendering | Assignee: | zalan <zalan> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | bfulgham, changseok, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, joepeck, koivisto, kondapallykalyan, macpherson, menard, ntim, pdr, simon.fraser, webkit-bug-importer, zalan | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Bug Depends on: | |||||||||||||
| Bug Blocks: | 245599 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
zalan
2022-10-17 10:01:22 PDT
Created attachment 463035 [details]
Patch
no tests yet. 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 (Also, does this need a `settings-flag` field in CSSProperties.json and an associated preference?) 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. 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==. 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 Created attachment 463745 [details]
Patch
Created attachment 463748 [details]
Patch
Created attachment 463760 [details]
[fast-cq]Patch
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]. |