Index: third_party/WebKit/Source/core/geometry/DOMMatrixReadOnly.cpp |
diff --git a/third_party/WebKit/Source/core/geometry/DOMMatrixReadOnly.cpp b/third_party/WebKit/Source/core/geometry/DOMMatrixReadOnly.cpp |
index b7e45a254475d8ac7e1c99b4eff15ad2e6ec1129..dd32bbcc5128b1ee3cd1a7107f89d22751ec3ceb 100644 |
--- a/third_party/WebKit/Source/core/geometry/DOMMatrixReadOnly.cpp |
+++ b/third_party/WebKit/Source/core/geometry/DOMMatrixReadOnly.cpp |
@@ -129,6 +129,11 @@ DOMMatrixReadOnly* DOMMatrixReadOnly::Create( |
return nullptr; |
} |
+DOMMatrixReadOnly* DOMMatrixReadOnly::CreateForSerialization(double sequence[], |
+ int size) { |
+ return new DOMMatrixReadOnly(sequence, size); |
+} |
+ |
DOMMatrixReadOnly* DOMMatrixReadOnly::fromFloat32Array( |
NotShared<DOMFloat32Array> float32_array, |
ExceptionState& exception_state) { |
@@ -164,10 +169,9 @@ DOMMatrixReadOnly* DOMMatrixReadOnly::fromMatrix( |
DCHECK(exception_state.HadException()); |
return nullptr; |
} |
- |
if (other.is2D()) { |
- double args[] = {other.m11(), other.m12(), other.m21(), |
- other.m22(), other.m41(), other.m42()}; |
+ double args[] = {other.a(), other.b(), other.c(), |
+ other.d(), other.e(), other.f()}; |
return new DOMMatrixReadOnly(args, 6); |
} |