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 { | 10 { |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 m_matrix->scaleNonUniform(sx, sy); | 152 m_matrix->scaleNonUniform(sx, sy); |
153 else | 153 else |
154 m_matrix->scale3d(sx, sy, sz); | 154 m_matrix->scale3d(sx, sy, sz); |
155 | 155 |
156 if (hasTranslation) | 156 if (hasTranslation) |
157 translateSelf(-ox, -oy, -oz); | 157 translateSelf(-ox, -oy, -oz); |
158 | 158 |
159 return this; | 159 return this; |
160 } | 160 } |
161 | 161 |
| 162 DOMMatrix* DOMMatrix::rotateAxisAngleSelf(double x, double y, double z, double a
ngle) |
| 163 { |
| 164 m_matrix->rotate3d(x, y, z, angle); |
| 165 |
| 166 if (x != 0 || y != 0) |
| 167 m_is2D = false; |
| 168 |
| 169 return this; |
| 170 } |
| 171 |
162 DOMMatrix* DOMMatrix::skewXSelf(double sx) | 172 DOMMatrix* DOMMatrix::skewXSelf(double sx) |
163 { | 173 { |
164 m_matrix->skewX(sx); | 174 m_matrix->skewX(sx); |
165 return this; | 175 return this; |
166 } | 176 } |
167 | 177 |
168 DOMMatrix* DOMMatrix::skewYSelf(double sy) | 178 DOMMatrix* DOMMatrix::skewYSelf(double sy) |
169 { | 179 { |
170 m_matrix->skewY(sy); | 180 m_matrix->skewY(sy); |
171 return this; | 181 return this; |
(...skipping 19 matching lines...) Expand all Loading... |
191 setM41(NAN); | 201 setM41(NAN); |
192 setM42(NAN); | 202 setM42(NAN); |
193 setM43(NAN); | 203 setM43(NAN); |
194 setM44(NAN); | 204 setM44(NAN); |
195 setIs2D(false); | 205 setIs2D(false); |
196 } | 206 } |
197 return this; | 207 return this; |
198 } | 208 } |
199 | 209 |
200 } // namespace blink | 210 } // namespace blink |
OLD | NEW |