| 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() | 9 DOMMatrix* DOMMatrix::create() |
| 10 { | 10 { |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 m_matrix->scaleNonUniform(sx, sy); | 143 m_matrix->scaleNonUniform(sx, sy); |
| 144 else | 144 else |
| 145 m_matrix->scale3d(sx, sy, sz); | 145 m_matrix->scale3d(sx, sy, sz); |
| 146 | 146 |
| 147 if (hasTranslation) | 147 if (hasTranslation) |
| 148 translateSelf(-ox, -oy, -oz); | 148 translateSelf(-ox, -oy, -oz); |
| 149 | 149 |
| 150 return this; | 150 return this; |
| 151 } | 151 } |
| 152 | 152 |
| 153 DOMMatrix* DOMMatrix::rotateAxisAngleSelf(double x, double y, double z, double a
ngle) |
| 154 { |
| 155 m_matrix->rotate3d(x, y, z, angle); |
| 156 |
| 157 if (x != 0 || y != 0) |
| 158 m_is2D = false; |
| 159 |
| 160 return this; |
| 161 } |
| 162 |
| 153 DOMMatrix* DOMMatrix::skewXSelf(double sx) | 163 DOMMatrix* DOMMatrix::skewXSelf(double sx) |
| 154 { | 164 { |
| 155 m_matrix->skewX(sx); | 165 m_matrix->skewX(sx); |
| 156 return this; | 166 return this; |
| 157 } | 167 } |
| 158 | 168 |
| 159 DOMMatrix* DOMMatrix::skewYSelf(double sy) | 169 DOMMatrix* DOMMatrix::skewYSelf(double sy) |
| 160 { | 170 { |
| 161 m_matrix->skewY(sy); | 171 m_matrix->skewY(sy); |
| 162 return this; | 172 return this; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 182 setM41(NAN); | 192 setM41(NAN); |
| 183 setM42(NAN); | 193 setM42(NAN); |
| 184 setM43(NAN); | 194 setM43(NAN); |
| 185 setM44(NAN); | 195 setM44(NAN); |
| 186 setIs2D(false); | 196 setIs2D(false); |
| 187 } | 197 } |
| 188 return this; | 198 return this; |
| 189 } | 199 } |
| 190 | 200 |
| 191 } // namespace blink | 201 } // namespace blink |
| OLD | NEW |