| 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 DOMMatrix* DOMMatrix::create(ExceptionState& exceptionState) { | 9 DOMMatrix* DOMMatrix::create(ExceptionState& exceptionState) { |
| 10 return new DOMMatrix(TransformationMatrix()); | 10 return new DOMMatrix(TransformationMatrix()); |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 m_matrix->scaleNonUniform(sx, sy); | 157 m_matrix->scaleNonUniform(sx, sy); |
| 158 else | 158 else |
| 159 m_matrix->scale3d(sx, sy, sz); | 159 m_matrix->scale3d(sx, sy, sz); |
| 160 | 160 |
| 161 if (hasTranslation) | 161 if (hasTranslation) |
| 162 translateSelf(-ox, -oy, -oz); | 162 translateSelf(-ox, -oy, -oz); |
| 163 | 163 |
| 164 return this; | 164 return this; |
| 165 } | 165 } |
| 166 | 166 |
| 167 DOMMatrix* DOMMatrix::rotateAxisAngleSelf(double x, |
| 168 double y, |
| 169 double z, |
| 170 double angle) { |
| 171 m_matrix->rotate3d(x, y, z, angle); |
| 172 |
| 173 if (x != 0 || y != 0) |
| 174 m_is2D = false; |
| 175 |
| 176 return this; |
| 177 } |
| 178 |
| 167 DOMMatrix* DOMMatrix::skewXSelf(double sx) { | 179 DOMMatrix* DOMMatrix::skewXSelf(double sx) { |
| 168 m_matrix->skewX(sx); | 180 m_matrix->skewX(sx); |
| 169 return this; | 181 return this; |
| 170 } | 182 } |
| 171 | 183 |
| 172 DOMMatrix* DOMMatrix::skewYSelf(double sy) { | 184 DOMMatrix* DOMMatrix::skewYSelf(double sy) { |
| 173 m_matrix->skewY(sy); | 185 m_matrix->skewY(sy); |
| 174 return this; | 186 return this; |
| 175 } | 187 } |
| 176 | 188 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 193 setM41(NAN); | 205 setM41(NAN); |
| 194 setM42(NAN); | 206 setM42(NAN); |
| 195 setM43(NAN); | 207 setM43(NAN); |
| 196 setM44(NAN); | 208 setM44(NAN); |
| 197 setIs2D(false); | 209 setIs2D(false); |
| 198 } | 210 } |
| 199 return this; | 211 return this; |
| 200 } | 212 } |
| 201 | 213 |
| 202 } // namespace blink | 214 } // namespace blink |
| OLD | NEW |