DescriptionImplements CSSPropertyAPI for the clip-path property.
A part of Project Ribbon, separating the parsing logic for CSS
properties from the parser into an API. This patch removes
CSSPropertyClipPath from the switch statement in parseSingleValue,
and calls the API instead.
A function pointer to the parseSingleValue function from the API for the
page property is stored in a CSSPropertyDescriptor, and is called from
CSSPropertyParser.
This patch:
- Adds CSSPropertyAPIClipPath.cpp to the BUILD.gn file.
- Adds api_class flag to CSSProperties.in, which indicates that
CSSPropertyAPIClipPath.h is generated.
- Moves the parsing logic for page from CSSPropertyParser.cpp to
CSSPropertyAPIClipPath.cpp, which implements CSSPropertyAPI.h.
BUG=668012
Review-Url: https://codereview.chromium.org/2646043003
Cr-Commit-Position: refs/heads/master@{#444986}
Committed: https://chromium.googlesource.com/chromium/src/+/a5de67a2a364184a9e9cdfe591aa8abc28046133
Patch Set 1 #
Total comments: 4
Patch Set 2 : remove using namespace #
Messages
Total messages: 17 (10 generated)
|