| 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..46922eb1802a1e2124ae8cd5c68c416a4e8de863 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, transformationMatrix.isAffine());
|
| +}
|
| +
|
| DOMMatrix::DOMMatrix(const TransformationMatrix& matrix, bool is2D)
|
| {
|
| m_matrix = TransformationMatrix::create(matrix);
|
|
|