DescriptionAdded CSSPropertyBackgroundComponentUtils which holds background component parsing methods.
Moved methods with background component 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 CSSPropertyBackgroundComponentUtils (.h and .cpp files) to
the BUILD.gn file.
- Moves consumeBackgroundBlendMode(), consumeBackgroundAttachment(),
consumeBackgroundBox(), consumeBackgroundComposite(),
consumeMaskSourceType(), consumePrefixedBackgroundBox(),
consumeBackgroundSize(), addBackgroundValue() and
consumeBackgroundComponent() from CSSPropertyParser.cpp to
CSSPropertyBackgroundComponentUtils.cpp.
- Changes callsites of these methods in CSSPropertyParser.cpp to call
the methods from CSSPropertyBackgroundComponentUtils.
BUG=668012
Patch Set 1 #Patch Set 2 : merge #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 10 (9 generated)
|