| Summary: | [css-ui] Parsing support for accent-color | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Aditya Keerthi <akeerthi> | ||||||||||
| Component: | CSS | Assignee: | Aditya Keerthi <akeerthi> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | changseok, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, joepeck, koivisto, kondapallykalyan, macpherson, menard, pdr, simon.fraser, thorton, webkit-bug-importer, wenson_hsieh | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | Other | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Bug Depends on: | |||||||||||||
| Bug Blocks: | 227587 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Aditya Keerthi
2021-10-06 15:42:24 PDT
Created attachment 440446 [details]
Patch
Created attachment 440452 [details]
Patch
Created attachment 440456 [details]
Patch
Comment on attachment 440456 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=440456&action=review > Source/WebCore/css/CSSProperties.json:225 > + "codegen-properties": { > + "color-property": true, > + "custom": "All", > + "settings-flag": "accentColorEnabled" > + }, Does this really need custom codegen? Wouldn't "auto-functions": true; be sufficient? > Source/WebCore/css/parser/CSSParserContext.cpp:159 > - | context.aspectRatioEnabled << 4 > - | context.colorContrastEnabled << 5 > - | context.colorFilterEnabled << 6 > - | context.colorMixEnabled << 7 > - | context.constantPropertiesEnabled << 8 > - | context.containmentEnabled << 9 > - | context.cssColor4 << 10 > - | context.deferredCSSParserEnabled << 11 > - | context.individualTransformPropertiesEnabled << 12 > + | context.accentColorEnabled << 4 Could have just added this to the end and avoided all the movement. Not like these are consistently in sorted order. Created attachment 440513 [details]
Patch for landing
(In reply to Antti Koivisto from comment #6) > Comment on attachment 440456 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=440456&action=review > > > Source/WebCore/css/CSSProperties.json:225 > > + "codegen-properties": { > > + "color-property": true, > > + "custom": "All", > > + "settings-flag": "accentColorEnabled" > > + }, > > Does this really need custom codegen? Wouldn't > > "auto-functions": true; > > be sufficient? This doesn't currently work for color properties. I'll add support here: https://bugs.webkit.org/show_bug.cgi?id=231376, and then make this change. > > Source/WebCore/css/parser/CSSParserContext.cpp:159 > > - | context.aspectRatioEnabled << 4 > > - | context.colorContrastEnabled << 5 > > - | context.colorFilterEnabled << 6 > > - | context.colorMixEnabled << 7 > > - | context.constantPropertiesEnabled << 8 > > - | context.containmentEnabled << 9 > > - | context.cssColor4 << 10 > > - | context.deferredCSSParserEnabled << 11 > > - | context.individualTransformPropertiesEnabled << 12 > > + | context.accentColorEnabled << 4 > > Could have just added this to the end and avoided all the movement. Not like > these are consistently in sorted order. Added to the end. Committed r283742 (242664@main): <https://commits.webkit.org/242664@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 440513 [details]. |