Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp

Issue 2435413002: Use a converter for building style value for 'transform' (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
index 6935b778e4469d82bdbe8b0e87c2641366782e4c..178f3c4f8e62f6ca2781858dc455a3eb57f97569 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
@@ -45,6 +45,7 @@
#include "core/css/CSSURIValue.h"
#include "core/css/CSSValuePair.h"
#include "core/css/resolver/FilterOperationResolver.h"
+#include "core/css/resolver/TransformBuilder.h"
#include "core/frame/LocalFrame.h"
#include "core/frame/UseCounter.h"
#include "core/style/ClipPathOperation.h"
@@ -1141,6 +1142,13 @@ TextSizeAdjust StyleBuilderConverter::convertTextSizeAdjust(
return TextSizeAdjust(primitiveValue.getFloatValue() / 100.0f);
}
+TransformOperations StyleBuilderConverter::convertTransformOperations(
+ StyleResolverState& state,
+ const CSSValue& value) {
+ return TransformBuilder::createTransformOperations(
+ value, state.cssToLengthConversionData());
+}
+
TransformOrigin StyleBuilderConverter::convertTransformOrigin(
StyleResolverState& state,
const CSSValue& value) {

Powered by Google App Engine
This is Rietveld 408576698