| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/dom/DOMMatrixReadOnly.h" | 5 #include "core/dom/DOMMatrixReadOnly.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/V8ObjectBuilder.h" | 7 #include "bindings/core/v8/V8ObjectBuilder.h" |
| 8 #include "core/css/CSSIdentifierValue.h" | 8 #include "core/css/CSSIdentifierValue.h" |
| 9 #include "core/css/CSSToLengthConversionData.h" | 9 #include "core/css/CSSToLengthConversionData.h" |
| 10 #include "core/css/CSSValueList.h" | 10 #include "core/css/CSSValueList.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 167 |
| 168 bool DOMMatrixReadOnly::isIdentity() const { | 168 bool DOMMatrixReadOnly::isIdentity() const { |
| 169 return m_matrix->isIdentity(); | 169 return m_matrix->isIdentity(); |
| 170 } | 170 } |
| 171 | 171 |
| 172 DOMMatrix* DOMMatrixReadOnly::multiply(DOMMatrixInit& other, | 172 DOMMatrix* DOMMatrixReadOnly::multiply(DOMMatrixInit& other, |
| 173 ExceptionState& exceptionState) { | 173 ExceptionState& exceptionState) { |
| 174 return DOMMatrix::create(this)->multiplySelf(other, exceptionState); | 174 return DOMMatrix::create(this)->multiplySelf(other, exceptionState); |
| 175 } | 175 } |
| 176 | 176 |
| 177 DOMMatrix* DOMMatrixReadOnly::multiply(DOMMatrixReadOnly* other, |
| 178 ExceptionState& exceptionState) { |
| 179 return DOMMatrix::create(this)->multiplySelf(other, exceptionState); |
| 180 } |
| 181 |
| 177 DOMMatrix* DOMMatrixReadOnly::translate(double tx, double ty, double tz) { | 182 DOMMatrix* DOMMatrixReadOnly::translate(double tx, double ty, double tz) { |
| 178 return DOMMatrix::create(this)->translateSelf(tx, ty, tz); | 183 return DOMMatrix::create(this)->translateSelf(tx, ty, tz); |
| 179 } | 184 } |
| 180 | 185 |
| 181 DOMMatrix* DOMMatrixReadOnly::scale(double sx) { | 186 DOMMatrix* DOMMatrixReadOnly::scale(double sx) { |
| 182 return scale(sx, sx); | 187 return scale(sx, sx); |
| 183 } | 188 } |
| 184 | 189 |
| 185 DOMMatrix* DOMMatrixReadOnly::scale(double sx, | 190 DOMMatrix* DOMMatrixReadOnly::scale(double sx, |
| 186 double sy, | 191 double sy, |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 | 394 |
| 390 m_matrix->makeIdentity(); | 395 m_matrix->makeIdentity(); |
| 391 operations.apply(FloatSize(0, 0), *m_matrix); | 396 operations.apply(FloatSize(0, 0), *m_matrix); |
| 392 | 397 |
| 393 m_is2D = !operations.has3DOperation(); | 398 m_is2D = !operations.has3DOperation(); |
| 394 | 399 |
| 395 return; | 400 return; |
| 396 } | 401 } |
| 397 | 402 |
| 398 } // namespace blink | 403 } // namespace blink |
| OLD | NEW |