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

Unified Diff: third_party/WebKit/Source/core/css/CSSMatrix.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/CSSMatrix.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSMatrix.cpp b/third_party/WebKit/Source/core/css/CSSMatrix.cpp
index 156510a5f2e8d2facaafde94cb81cb3980e6a8a0..00e937709f5d0b396e4f059eed02a216d4d57118 100644
--- a/third_party/WebKit/Source/core/css/CSSMatrix.cpp
+++ b/third_party/WebKit/Source/core/css/CSSMatrix.cpp
@@ -77,11 +77,10 @@ void CSSMatrix::setMatrixValue(const String& string,
return;
DEFINE_STATIC_REF(ComputedStyle, initialStyle, createInitialStyle());
- TransformOperations operations;
- TransformBuilder::createTransformOperations(
- *value, CSSToLengthConversionData(initialStyle, initialStyle,
- LayoutViewItem(nullptr), 1.0f),
- operations);
+ TransformOperations operations =
+ TransformBuilder::createTransformOperations(
+ *value, CSSToLengthConversionData(initialStyle, initialStyle,
+ LayoutViewItem(nullptr), 1.0f));
// Convert transform operations to a TransformationMatrix. This can fail
// if a param has a percentage ('%')

Powered by Google App Engine
This is Rietveld 408576698