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

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

Issue 2283363003: GeometryInterface: Add DOMMatrixInit and fromMatrix(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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.h
diff --git a/third_party/WebKit/Source/core/dom/DOMMatrix.h b/third_party/WebKit/Source/core/dom/DOMMatrix.h
index b9e4d1cd47877f960527f6910042cfccedb5b34a..71f71ef177284ec9c4a3c9c3aa57ef8c8d36dc85 100644
--- a/third_party/WebKit/Source/core/dom/DOMMatrix.h
+++ b/third_party/WebKit/Source/core/dom/DOMMatrix.h
@@ -5,6 +5,7 @@
#ifndef DOMMatrix_h
#define DOMMatrix_h
+#include "core/dom/DOMMatrixInit.h"
#include "core/dom/DOMMatrixReadOnly.h"
namespace blink {
@@ -15,6 +16,7 @@ public:
static DOMMatrix* create();
static DOMMatrix* create(DOMMatrixReadOnly*);
static DOMMatrix* create(const SkMatrix44&);
+ static DOMMatrix* fromMatrix(DOMMatrixInit&, ExceptionState&);
void setA(double value) { m_matrix->setM11(value); }
void setB(double value) { m_matrix->setM12(value); }
@@ -40,8 +42,8 @@ public:
void setM43(double value) { m_matrix->setM43(value); setIs2D(!value); }
void setM44(double value) { m_matrix->setM44(value); setIs2D(value != 1); }
- DOMMatrix* multiplySelf(DOMMatrix*);
- DOMMatrix* preMultiplySelf(DOMMatrix*);
+ DOMMatrix* multiplySelf(DOMMatrixInit&, ExceptionState&);
+ DOMMatrix* preMultiplySelf(DOMMatrixInit&, ExceptionState&);
DOMMatrix* translateSelf(double tx, double ty, double tz = 0);
DOMMatrix* scaleSelf(double scale, double ox = 0, double oy = 0);
DOMMatrix* scale3dSelf(double scale, double ox = 0, double oy = 0, double oz = 0);

Powered by Google App Engine
This is Rietveld 408576698