DescriptionImplement parseShorthand API for shorthand properties, "overflow", "font" and "font-variant"
This cl contains the following changes
* API impl of the three shorthand properties (CSSShorthandPropertyAPIOverflow,
CSSShorthandPropertyAPIFont, CSSShorthandPropertyAPIFontVariant).
* Moved ConsumeFontVariantCSS21 from CSSPropertyParser.cpp to CSSPropertyFontUtils.
- this function is being used by CSSShorthandPropertyAPIFont and also another function
from CSSPropertyParser.cpp.
* Changed CSSPropertyParser.cpp to use the new API parseShorthand for the three properties
above. Additional changes are:
- moved two helper functions (ConsumeSystemFont and ConsumeFont) to be private functions of CSSShorthandPropertyAPIFont.
- removed ConsumeFontVariantShorthand that's no longer needed.
* Added the properties API to BUILD file and CSSProperties.json5.
* Changed AddProperty signature so that "implicit" is now an enum.
- We previously passed on bool literals to this function. This change makes the function follow the style guide.
Diff: https://gist.github.com/810c7e46324ff8db8efb6f34ddfdad42/revisions
Review-Url: https://codereview.chromium.org/2938983002
Cr-Commit-Position: refs/heads/master@{#481037}
Committed: https://chromium.googlesource.com/chromium/src/+/d061cbb5a9efad51a47fed2becf04e688ac51dea
Patch Set 1 #Patch Set 2 : Rebase cl #
Total comments: 16
Patch Set 3 : Rebase cl. #Patch Set 4 : Change AddProperty's "implicit" to an enum. #
Total comments: 4
Patch Set 5 : Rebase cl #Patch Set 6 : Change implicit from enum to enum class. Also rebase cl. #Patch Set 7 : Remove tmp file. #
Total comments: 2
Patch Set 8 : Replace ImplicitProperty by IsImplicitProperty #Messages
Total messages: 50 (32 generated)
|