DescriptionImplements CSSPropertyAPI for the column-width property.
A part of Project Ribbon, separating the parsing logic for CSS
properties from the parser into an API. This patch removes
CSSPropertyColumnWidth from the switch statement in parseSingleValue,
and calls the API instead.
A function pointer to the parseSingleValue function from the API for the
column-width property is stored in a CSSPropertyDescriptor, and is
called from CSSPropertyParser.
This patch:
- Adds CSSPropertyAPIColumnWidth.cpp to the BUILD.gn file.
- Adds api_class flag to CSSProperties.in, which indicates that
CSSPropertyAPIColumnWidth.h is generated.
- Moves the parsing logic for page from CSSPropertyParser.cpp to
CSSPropertyAPIColumnWidth.cpp, which implements CSSPropertyAPI.h.
BUG=668012
Review-Url: https://codereview.chromium.org/2634313003
Cr-Commit-Position: refs/heads/master@{#447487}
Committed: https://chromium.googlesource.com/chromium/src/+/d00a76bf063fbbde05990038e4b3770482d41fb1
Patch Set 1 #Patch Set 2 : rebase #Patch Set 3 : rebase #Patch Set 4 : rebase #Patch Set 5 : added api_methods flag #Patch Set 6 : rebase #
Depends on Patchset: Messages
Total messages: 32 (26 generated)
|