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

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

Issue 2606023002: [GeometryInterface] parameter was changed to DOMMatrixReadOnly. (Closed)
Patch Set: first commit Created 4 years 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/dom/DOMMatrix.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMMatrix.cpp b/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
index 59c6ae4412f04aa6c0f8c2c0e4fb043a1bee1217..65c80a4cc61f111e1d93082e00a13a4522324d7c 100644
--- a/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
@@ -126,6 +126,16 @@ DOMMatrix* DOMMatrix::multiplySelf(DOMMatrixInit& other,
return this;
}
+DOMMatrix* DOMMatrix::multiplySelf(DOMMatrixReadOnly* other,
+ ExceptionState& exceptionState) {
+ if (!other->is2D())
+ m_is2D = false;
+
+ *m_matrix *= other->matrix();
+
+ return this;
+}
+
DOMMatrix* DOMMatrix::preMultiplySelf(DOMMatrixInit& other,
ExceptionState& exceptionState) {
DOMMatrix* otherMatrix = DOMMatrix::fromMatrix(other, exceptionState);
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMMatrix.h ('k') | third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698