DescriptionImplements CSSPropertyAPI for the touch-action property
A part of Project Ribbon, separating the parsing logic for CSS
properties from the parser into an API. This patch removes
CSSPropertyTouchAction from the switch statement in
parseSingleValue, and calls the API instead.
A function pointer to the parseSingleValue function from the API for the
touch-action property is stored in a CSSPropertyDescriptor,
and is called from CSSPropertyParser.
This patch:
- Adds CSSPropertyAPITouchAction.cpp to the BUILD.gn file.
- Adds api_class flag to CSSProperties.in, which indicates that
CSSPropertyAPITouchAction.h is generated.
- Moves the parsing logic for touch-action from
CSSPropertyParser.cpp to CSSPropertyAPITouchAction.cpp,
which implements CSSPropertyAPI.h.
BUG=668012
R=aazzam@google.com
Review-Url: https://codereview.chromium.org/2647883002
Cr-Commit-Position: refs/heads/master@{#445343}
Committed: https://chromium.googlesource.com/chromium/src/+/5126c91a1cceff9980c75d8a8fe46413010dfdfb
Patch Set 1 #
Messages
Total messages: 13 (6 generated)
|