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 802ab17963d148fd2aba4ff7ffa03004b5cd24b2..56a80f91bae013fd4798ca4cc3b7846d477d93a7 100644 |
--- a/third_party/WebKit/Source/core/dom/DOMMatrix.cpp |
+++ b/third_party/WebKit/Source/core/dom/DOMMatrix.cpp |
@@ -16,6 +16,12 @@ DOMMatrix* DOMMatrix::create(DOMMatrixReadOnly* other) |
return new DOMMatrix(other->matrix(), other->is2D()); |
} |
+DOMMatrix* DOMMatrix::create(const SkMatrix44& matrix) |
+{ |
+ TransformationMatrix transformationMatrix(matrix); |
+ return new DOMMatrix(transformationMatrix, true); |
jbroman
2016/06/08 14:59:38
the boolean here is "is2D"; what justification doe
majidvp
2016/06/08 21:50:09
Done.
You are absolutely right. Not the bit is onl
|
+} |
+ |
DOMMatrix::DOMMatrix(const TransformationMatrix& matrix, bool is2D) |
{ |
m_matrix = TransformationMatrix::create(matrix); |