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

Unified Diff: third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.cpp

Issue 1689723004: CSS Typed OM: Implement TransformValue::asMatrix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@computeLengthValue
Patch Set: Created 4 years, 10 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/cssom/MatrixTransformComponent.cpp
diff --git a/third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.cpp b/third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.cpp
index 69a95d99548bca899d09bf9121718e1e5e93f46b..4c76200f3b86e5d1e7dad04b755e342309bf033b 100644
--- a/third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.cpp
+++ b/third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.cpp
@@ -98,4 +98,15 @@ MatrixTransformComponent* MatrixTransformComponent::translate3d(double x, double
return new MatrixTransformComponent(matrix.release(), Translation3DType);
}
+// TODO: implement multiply with case statement with TransformComponent::type()
+MatrixTransformComponent* MatrixTransformComponent::multiplySelf(const MatrixTransformComponent* other)
+{
+ if (!other->is2DComponent())
+ m_is2D = false;
+
+ *m_matrix *= other->matrix();
+
+ return this;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698