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

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

Issue 2504543003: [GeometryInterface] Add Constructor() at DOMMatrixReadOnly. (Closed)
Patch Set: rebase Created 4 years, 1 month 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 de14957fd2e6b3909b7afadc109e2fbde2207782..731b6f0aedd16e297d8a82d034da7e40ab184885 100644
--- a/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
@@ -66,10 +66,8 @@ template <typename T>
DOMMatrix::DOMMatrix(T sequence, int size)
: DOMMatrixReadOnly(sequence, size) {}
-DOMMatrix::DOMMatrix(const TransformationMatrix& matrix, bool is2D) {
- m_matrix = TransformationMatrix::create(matrix);
- m_is2D = is2D;
-}
+DOMMatrix::DOMMatrix(const TransformationMatrix& matrix, bool is2D)
+ : DOMMatrixReadOnly(matrix, is2D) {}
DOMMatrix* DOMMatrix::fromMatrix(DOMMatrixInit& other,
ExceptionState& exceptionState) {

Powered by Google App Engine
This is Rietveld 408576698