DescriptionMove transform building logic out of StyleResolver
Move TransformBuilder::createTransformOperations and support
functionality out of StyleResolver and into a separate self contained
class.
* Source/core/css/StyleResolver.cpp:
* Source/core/css/StyleResolver.h:
(StyleResolver::applyProperty):
Change CSSPropertyWebkitTransform case to use TransformBuilder to
populate TransformOperations list.
(StyleResolver::parseCustomFilterTransformParam):
Change to use TransformBuilder to populate TransformOperations
list.
(StyleResolver::createTransformOperations):
Move createTransformOperations to TransformBuilder.
(getTransformOperationType):
Move static function to TransformBuilder as it is only used by
the createTransformOperations method.
* Source/core/css/TransformBuilder.cpp:
* Source/core/css/TransformBuilder.h:
New files split from StyleResolver, as the cpp file is basically a
copy of the relevant section from StyleResolver.cpp the same
copyright is used.
(convertToFloatLength):
Static support function for createTransformOperations.
(getTransformOperationType):
Static support function for createTransformOperations, moved from
StyleResolver.cpp.
(TransformBuilder::createTransformOperations):
Main method for populating a TransformOperations list, moved from
StyleResolver.cpp
R=eseidel@chromium.org
BUG=237269
TEST=No new tests, no change in functionality.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149545
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|