DescriptionImplements CSSPropertyAPI for the flex-basis property.
A part of Project Ribbon, separating the parsing logic for CSS
properties from the parser into an API. This patch removes
CSSPropertyFlexBasis 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 CSSPropertyAPIFlexBasis.cpp to the BUILD.gn file.
- Adds api_class flag to CSSProperties.in, which indicates that
CSSPropertyAPIFlexBasis.h is generated.
- Moves the parsing logic for page from CSSPropertyParser.cpp to
CSSPropertyAPIFlexBasis.cpp, which implements CSSPropertyAPI.h.
BUG=668012
Review-Url: https://codereview.chromium.org/2613843002
Cr-Commit-Position: refs/heads/master@{#442815}
Committed: https://chromium.googlesource.com/chromium/src/+/06d4b710f141515835cd08440b66a59914566b39
Patch Set 1 #Patch Set 2 : fixed dependencies, changed year #Patch Set 3 : dependencies #Patch Set 4 : upstream #Patch Set 5 : upstream #Patch Set 6 : rebase #Patch Set 7 : rebase #Patch Set 8 : rebase #
Depends on Patchset: Messages
Total messages: 30 (24 generated)
|