| 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 876729c9d273ea17eb17a8eaa8c750d523d9b25e..6152ca0e91ca6747b913c3808ac05d3bba81c017 100644
|
| --- a/third_party/WebKit/Source/core/geometry/DOMMatrixReadOnly.cpp
|
| +++ b/third_party/WebKit/Source/core/geometry/DOMMatrixReadOnly.cpp
|
| @@ -155,10 +155,14 @@ DOMMatrixReadOnly* DOMMatrixReadOnly::fromMatrix(
|
| DCHECK(exception_state.HadException());
|
| return nullptr;
|
| }
|
| + return fromMatrixForSerialization(other);
|
| +}
|
|
|
| +DOMMatrixReadOnly* DOMMatrixReadOnly::fromMatrixForSerialization(
|
| + DOMMatrixInit& other) {
|
| 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);
|
| }
|
|
|
|
|