Implement API for shorthand property border-radius

Desktop / Chromium - jiameng [chromium.org] - 15 June 2017 08:22 EDT

This cl contains the following changes
- API class and parseShorthand for CSSShorthandPropertyAPIBorderRadius.
- Updated CSSPropertyParser.cpp to use the new API.
- Added CSSParserLocalContext as another input param to parseShorthand. This is because border-radius has an alias that is parsed using the legacy method. Another shorthand property (animation) will also require this param.

Diff: https://gist.github.com/1c2b6455794a568541494aa0e4007ed5/revisions Review-Url: https://codereview.chromium.org/2942483002 Cr-Commit-Position: refs/heads/master@{#479676}

eb2c92d Implement API for shorthand property border-radius
third_party/WebKit/Source/core/BUILD.gn | 1 +
third_party/WebKit/Source/core/css/BUILD.gn | 1 +
.../WebKit/Source/core/css/CSSProperties.json5 | 2 +
.../Source/core/css/parser/CSSPropertyParser.cpp | 38 ++--------------
.../css/properties/CSSPropertyAPIMethods.json5 | 2 +-
.../CSSShorthandPropertyAPIBorderRadius.cpp | 53 ++++++++++++++++++++++
.../css/properties/CSSShorthandPropertyAPIFlex.cpp | 2 +
7 files changed, 65 insertions(+), 34 deletions(-)

Upstream: git.chromium.org


  • Share