DescriptionImplements CSSPropertyAPI for the caret-color property.
A part of Project Ribbon, separating the parsing logic for CSS
properties from the parser into an API. This patch removes
CSSPropertyCaretColor 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 CSSPropertyAPICaretColor.cpp to the BUILD.gn file.
- Adds api_class flag to CSSProperties.in, which indicates that
CSSPropertyAPICaretColor.h is generated.
- Moves the parsing logic for page from CSSPropertyParser.cpp to
CSSPropertyAPICaretColor.cpp, which implements CSSPropertyAPI.h.
BUG=668012
Review-Url: https://codereview.chromium.org/2618613002
Cr-Commit-Position: refs/heads/master@{#442807}
Committed: https://chromium.googlesource.com/chromium/src/+/5238291dc55a45a16dce3f623b54ad24f47f0798
Patch Set 1 #Patch Set 2 : fixed dependencies, changed year #Patch Set 3 : fixed dependency #Patch Set 4 : dependencies #Patch Set 5 : upstream #
Total comments: 1
Patch Set 6 : rebase #Patch Set 7 : rebase #
Dependent Patchsets: Messages
Total messages: 27 (20 generated)
|