DescriptionImplements CSSPropertyAPI for the outline-offset property.
A part of Project Ribbon, separating the parsing logic for CSS
properties from the parser into an API. This patch removes
CSSPropertyOutlineOffset 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 CSSPropertyAPIOutlineOffset.cpp to the BUILD.gn file.
- Adds api_class flag to CSSProperties.in, which indicates that
CSSPropertyAPIOutlineOffset.h is generated.
- Moves the parsing logic for page from CSSPropertyParser.cpp to
CSSPropertyAPIOutlineOffset.cpp, which implements
CSSPropertyAPI.h.
BUG=668012
Review-Url: https://codereview.chromium.org/2610813004
Cr-Commit-Position: refs/heads/master@{#442876}
Committed: https://chromium.googlesource.com/chromium/src/+/8852ff80bff73f4d2c2c1fbcbece05ed1258853a
Patch Set 1 #Patch Set 2 : fixed dependencies #Patch Set 3 : dependencies #Patch Set 4 : rebase #Patch Set 5 : rebase #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 34 (28 generated)
|