DescriptionAdded CSSPropertyPositionUtils which holds position parsing methods.
Moved methods with position parsing logic into a utils file, so that
the parsing logic for CSSPropertyBackgroundAttachment,
CSSPropertyBackgroundBlendMode, CSSPropertyBackgroundClip,
CSSPropertyBackgroundImage, CSSPropertyBackgroundOrigin,
CSSPropertyBackgroundPositionX, CSSPropertyBackgroundPositionY,
CSSPropertyBackgroundSize, CSSPropertyMaskSourceType,
CSSPropertyWebkitBackgroundClip, CSSPropertyWebkitBackgroundOrigin,
CSSPropertyWebkitMaskClip, CSSPropertyWebkitMaskComposite,
CSSPropertyWebkitMaskImage, CSSPropertyWebkitMaskOrigin,
CSSPropertyWebkitMaskPositionX, CSSPropertyWebkitMaskPositionY and
CSSPropertyWebkitMaskSize can be moved out of
CSSPropertyParser.cpp into implementations of CSSPropertyAPI.h.
Follow up patches implement CSSPropertyAPI for all the properties.
This patch:
- Adds CSSPropertyPositionUtils (.h and .cpp files) to the BUILD.gn
file.
- Moves consumePositionLonghand(), consumePositionX() and
consumePositionY() from CSSPropertyParser.cpp to
CSSPropertyPositionUtils.cpp.
- Changes callsites of these methods in CSSPropertyParser.cpp to call
the methods from CSSPropertyPositionUtils.
BUG=668012
Review-Url: https://codereview.chromium.org/2647503004
Cr-Commit-Position: refs/heads/master@{#445031}
Committed: https://chromium.googlesource.com/chromium/src/+/6cb44cd8daf1700acb3cc710191974d2c057a4ba
Patch Set 1 #Patch Set 2 : Add position utility functions #Patch Set 3 : It builds! #
Total comments: 5
Patch Set 4 : Merged correctly #
Dependent Patchsets: Messages
Total messages: 28 (20 generated)
|