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

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, 3 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 80617cb65a8b09dfe1259255d6bee59b01090329..1ad7fadee155c70ba0ee90376ed81c2117d0c235 100644
--- a/third_party/WebKit/Source/core/dom/DOMMatrix.h
+++ b/third_party/WebKit/Source/core/dom/DOMMatrix.h
@@ -5,11 +5,12 @@
#ifndef DOMMatrix_h
#define DOMMatrix_h
+#include "core/dom/DOMMatrixInit.h"
#include "core/dom/DOMMatrixReadOnly.h"
namespace blink {
-class DOMMatrix : public DOMMatrixReadOnly {
+class CORE_EXPORT DOMMatrix : public DOMMatrixReadOnly {
DEFINE_WRAPPERTYPEINFO();
public:
static DOMMatrix* create();
@@ -17,6 +18,7 @@ public:
static DOMMatrix* create(const SkMatrix44&);
static DOMMatrix* fromFloat32Array(DOMFloat32Array*, ExceptionState&);
static DOMMatrix* fromFloat64Array(DOMFloat64Array*, ExceptionState&);
+ static DOMMatrix* fromMatrix(DOMMatrixInit&, ExceptionState&);
void setA(double value) { m_matrix->setM11(value); }
void setB(double value) { m_matrix->setM12(value); }
@@ -42,8 +44,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