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

Unified Diff: third_party/WebKit/Source/core/geometry/DOMMatrix.cpp

Issue 2907973002: [css-typed-om] add toMatrix() method in CSSTransformValue.idl (Closed)
Patch Set: make Create() function in DOMMatrix Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/geometry/DOMMatrix.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/geometry/DOMMatrix.cpp
diff --git a/third_party/WebKit/Source/core/geometry/DOMMatrix.cpp b/third_party/WebKit/Source/core/geometry/DOMMatrix.cpp
index 3522b8e4c82e7a80c99f1616a9c17d585fd061ae..90c26cd2ebf476f19f130240e737bdedd679c3e6 100644
--- a/third_party/WebKit/Source/core/geometry/DOMMatrix.cpp
+++ b/third_party/WebKit/Source/core/geometry/DOMMatrix.cpp
@@ -6,6 +6,10 @@
namespace blink {
+DOMMatrix* DOMMatrix::Create() {
+ return new DOMMatrix(TransformationMatrix());
+}
+
DOMMatrix* DOMMatrix::Create(ExecutionContext* execution_context,
ExceptionState& exception_state) {
return new DOMMatrix(TransformationMatrix());
@@ -139,6 +143,10 @@ DOMMatrix* DOMMatrix::multiplySelf(DOMMatrixInit& other,
DCHECK(exception_state.HadException());
return nullptr;
}
+ return multiplySelf(other_matrix);
+}
+
+DOMMatrix* DOMMatrix::multiplySelf(DOMMatrix* other_matrix) {
if (!other_matrix->is2D())
is2d_ = false;
« no previous file with comments | « third_party/WebKit/Source/core/geometry/DOMMatrix.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698