| 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 fbce2ad2d2ae5c912c00567fb5290af5a00cd883..c5d5cbc13cc0c19f798efef093bef5d6c71beaf7 100644
|
| --- a/third_party/WebKit/Source/core/geometry/DOMMatrixReadOnly.cpp
|
| +++ b/third_party/WebKit/Source/core/geometry/DOMMatrixReadOnly.cpp
|
| @@ -115,27 +115,31 @@ DOMMatrixReadOnly* DOMMatrixReadOnly::create(Vector<double> sequence,
|
| }
|
|
|
| DOMMatrixReadOnly* DOMMatrixReadOnly::fromFloat32Array(
|
| - DOMFloat32Array* float32Array,
|
| + const NotShared<DOMFloat32Array>& float32Array,
|
| ExceptionState& exceptionState) {
|
| - if (float32Array->length() != 6 && float32Array->length() != 16) {
|
| + if (float32Array.view()->length() != 6 &&
|
| + float32Array.view()->length() != 16) {
|
| exceptionState.throwTypeError(
|
| "The sequence must contain 6 elements for a 2D matrix or 16 elements a "
|
| "for 3D matrix.");
|
| return nullptr;
|
| }
|
| - return new DOMMatrixReadOnly(float32Array->data(), float32Array->length());
|
| + return new DOMMatrixReadOnly(float32Array.view()->data(),
|
| + float32Array.view()->length());
|
| }
|
|
|
| DOMMatrixReadOnly* DOMMatrixReadOnly::fromFloat64Array(
|
| - DOMFloat64Array* float64Array,
|
| + const NotShared<DOMFloat64Array>& float64Array,
|
| ExceptionState& exceptionState) {
|
| - if (float64Array->length() != 6 && float64Array->length() != 16) {
|
| + if (float64Array.view()->length() != 6 &&
|
| + float64Array.view()->length() != 16) {
|
| exceptionState.throwTypeError(
|
| "The sequence must contain 6 elements for a 2D matrix or 16 elements "
|
| "for a 3D matrix.");
|
| return nullptr;
|
| }
|
| - return new DOMMatrixReadOnly(float64Array->data(), float64Array->length());
|
| + return new DOMMatrixReadOnly(float64Array.view()->data(),
|
| + float64Array.view()->length());
|
| }
|
|
|
| DOMMatrixReadOnly* DOMMatrixReadOnly::fromMatrix(
|
|
|