Chromium Code Reviews
DescriptionImplements CSSPropertyAPI for the offset-path property
A part of Project Ribbon, separating the parsing logic for CSS
properties from the parser into an API. This patch removes
CSSPropertyOffsetPath from the switch statement in
parseSingleValue, and calls the API instead.
A function pointer to the parseSingleValue function from the API
for the offset-path property is stored in a CSSPropertyDescriptor,
and is called from CSSPropertyParser.
This patch:
- Adds CSSPropertyAPIOffsetPath.cpp to the BUILD.gn file.
- Adds parseSingleValue to "offset-path" in CSSProperties.json5
so that it will be added to the generated files for the api.
- Moves the parsing logic for offset-path from CSSPropertyParser.cpp
to CSSPropertyAPIOffsetPath.cpp, which implements
CSSPropertyAPI.h.
BUG=668012
Review-Url: https://codereview.chromium.org/2878533004
Cr-Commit-Position: refs/heads/master@{#471289}
Committed: https://chromium.googlesource.com/chromium/src/+/545f7be4401875ef9842de21144da3561281b2db
Patch Set 1 #
Total comments: 2
Patch Set 2 : add the new generated .h file to core/BUILD.gn #
Messages
Total messages: 21 (12 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||