Index: third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.h |
diff --git a/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.h b/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.h |
index 08779b37bf243202d81dcd1024e920050ddd4b58..379d2f347311b54e0a9e762cd96027dc9cdb0c00 100644 |
--- a/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.h |
+++ b/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.h |
@@ -15,11 +15,13 @@ |
namespace blink { |
class DOMMatrix; |
+class DOMMatrixInit; |
class DOMMatrixReadOnly : public GarbageCollectedFinalized<DOMMatrixReadOnly>, public ScriptWrappable { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
static DOMMatrixReadOnly* create(Vector<double>, ExceptionState&); |
+ static DOMMatrixReadOnly* fromMatrix(DOMMatrixInit&, ExceptionState&); |
virtual ~DOMMatrixReadOnly(); |
double a() const { return m_matrix->m11(); } |
@@ -49,7 +51,7 @@ public: |
bool is2D() const; |
bool isIdentity() const; |
- DOMMatrix* multiply(DOMMatrix*); |
+ DOMMatrix* multiply(DOMMatrixInit&, ExceptionState&); |
DOMMatrix* translate(double tx, double ty, double tz = 0); |
DOMMatrix* scale(double scale, double ox = 0, double oy = 0); |
DOMMatrix* scale3d(double scale, double ox = 0, double oy = 0, double oz = 0); |
@@ -71,6 +73,7 @@ public: |
protected: |
DOMMatrixReadOnly() {} |
+ static void validateAndFixup(DOMMatrixInit&, ExceptionState&); |
// TransformationMatrix needs to be 16-byte aligned. PartitionAlloc |
// supports 16-byte alignment but Oilpan doesn't. So we use an std::unique_ptr |
// to allocate TransformationMatrix on PartitionAlloc. |