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

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

Issue 2747383003: WIP: Brand-check on DOMMatrixReadOnly multiply.
Patch Set: Created 3 years, 9 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/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..8821c5c3b7e8ebdd3562750a080fa58e5df47304 100644
--- a/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
@@ -15,6 +15,10 @@ DOMMatrix* DOMMatrix::create(DOMMatrixReadOnly* other,
return new DOMMatrix(other->matrix(), other->is2D());
}
+DOMMatrix* DOMMatrix::create(const TransformationMatrix& matrix) {
+ return new DOMMatrix(matrix, matrix.isAffine());
+}
+
DOMMatrix* DOMMatrix::create(const SkMatrix44& matrix,
ExceptionState& exceptionState) {
TransformationMatrix transformationMatrix(matrix);
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMMatrix.h ('k') | third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698