| 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/DOMMatrix.h" | 5 #include "core/dom/DOMMatrix.h" | 
| 6 | 6 | 
| 7 namespace blink { | 7 namespace blink { | 
| 8 | 8 | 
| 9 DOMMatrixReadOnly* DOMMatrixReadOnly::create(Vector<double> sequence, ExceptionS
     tate& exceptionState) | 9 DOMMatrixReadOnly* DOMMatrixReadOnly::create(Vector<double> sequence, ExceptionS
     tate& exceptionState) | 
| 10 { | 10 { | 
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 67 { | 67 { | 
| 68     return DOMMatrix::create(this)->scale3dSelf(scale, ox, oy, oz); | 68     return DOMMatrix::create(this)->scale3dSelf(scale, ox, oy, oz); | 
| 69 } | 69 } | 
| 70 | 70 | 
| 71 DOMMatrix* DOMMatrixReadOnly::scaleNonUniform(double sx, double sy, double sz, | 71 DOMMatrix* DOMMatrixReadOnly::scaleNonUniform(double sx, double sy, double sz, | 
| 72     double ox, double oy, double oz) | 72     double ox, double oy, double oz) | 
| 73 { | 73 { | 
| 74     return DOMMatrix::create(this)->scaleNonUniformSelf(sx, sy, sz, ox, oy, oz); | 74     return DOMMatrix::create(this)->scaleNonUniformSelf(sx, sy, sz, ox, oy, oz); | 
| 75 } | 75 } | 
| 76 | 76 | 
|  | 77 DOMMatrix* DOMMatrixReadOnly::skewX(double sx) | 
|  | 78 { | 
|  | 79     return DOMMatrix::create(this)->skewXSelf(sx); | 
|  | 80 } | 
|  | 81 | 
|  | 82 DOMMatrix* DOMMatrixReadOnly::skewY(double sy) | 
|  | 83 { | 
|  | 84     return DOMMatrix::create(this)->skewYSelf(sy); | 
|  | 85 } | 
|  | 86 | 
| 77 DOMMatrix* DOMMatrixReadOnly::flipX() | 87 DOMMatrix* DOMMatrixReadOnly::flipX() | 
| 78 { | 88 { | 
| 79     DOMMatrix* flipX = DOMMatrix::create(this); | 89     DOMMatrix* flipX = DOMMatrix::create(this); | 
| 80     flipX->setM11(-this->m11()); | 90     flipX->setM11(-this->m11()); | 
| 81     flipX->setM12(-this->m12()); | 91     flipX->setM12(-this->m12()); | 
| 82     flipX->setM13(-this->m13()); | 92     flipX->setM13(-this->m13()); | 
| 83     flipX->setM14(-this->m14()); | 93     flipX->setM14(-this->m14()); | 
| 84     return flipX; | 94     return flipX; | 
| 85 } | 95 } | 
| 86 | 96 | 
| (...skipping 25 matching lines...) Expand all  Loading... | 
| 112         m_matrix->m11(), m_matrix->m12(), m_matrix->m13(), m_matrix->m14(), | 122         m_matrix->m11(), m_matrix->m12(), m_matrix->m13(), m_matrix->m14(), | 
| 113         m_matrix->m21(), m_matrix->m22(), m_matrix->m23(), m_matrix->m24(), | 123         m_matrix->m21(), m_matrix->m22(), m_matrix->m23(), m_matrix->m24(), | 
| 114         m_matrix->m31(), m_matrix->m32(), m_matrix->m33(), m_matrix->m34(), | 124         m_matrix->m31(), m_matrix->m32(), m_matrix->m33(), m_matrix->m34(), | 
| 115         m_matrix->m41(), m_matrix->m42(), m_matrix->m43(), m_matrix->m44() | 125         m_matrix->m41(), m_matrix->m42(), m_matrix->m43(), m_matrix->m44() | 
| 116     }; | 126     }; | 
| 117 | 127 | 
| 118     return DOMFloat64Array::create(array, 16); | 128     return DOMFloat64Array::create(array, 16); | 
| 119 } | 129 } | 
| 120 | 130 | 
| 121 } // namespace blink | 131 } // namespace blink | 
| OLD | NEW | 
|---|