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 #include "core/dom/DOMMatrixInit.h" | 6 #include "core/dom/DOMMatrixInit.h" |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 namespace { | 9 namespace { |
10 | 10 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 return DOMMatrix::create(this)->scaleSelf(sx, sy, sz, ox, oy, oz); | 166 return DOMMatrix::create(this)->scaleSelf(sx, sy, sz, ox, oy, oz); |
167 } | 167 } |
168 | 168 |
169 DOMMatrix* DOMMatrixReadOnly::scale3d(double scale, | 169 DOMMatrix* DOMMatrixReadOnly::scale3d(double scale, |
170 double ox, | 170 double ox, |
171 double oy, | 171 double oy, |
172 double oz) { | 172 double oz) { |
173 return DOMMatrix::create(this)->scale3dSelf(scale, ox, oy, oz); | 173 return DOMMatrix::create(this)->scale3dSelf(scale, ox, oy, oz); |
174 } | 174 } |
175 | 175 |
| 176 DOMMatrix* DOMMatrixReadOnly::rotate(double rotX) { |
| 177 return DOMMatrix::create(this)->rotateSelf(rotX); |
| 178 } |
| 179 |
| 180 DOMMatrix* DOMMatrixReadOnly::rotate(double rotX, double rotY) { |
| 181 return DOMMatrix::create(this)->rotateSelf(rotX, rotY); |
| 182 } |
| 183 |
| 184 DOMMatrix* DOMMatrixReadOnly::rotate(double rotX, double rotY, double rotZ) { |
| 185 return DOMMatrix::create(this)->rotateSelf(rotX, rotY, rotZ); |
| 186 } |
| 187 |
| 188 DOMMatrix* DOMMatrixReadOnly::rotateFromVector(double x, double y) { |
| 189 return DOMMatrix::create(this)->rotateFromVectorSelf(x, y); |
| 190 } |
| 191 |
176 DOMMatrix* DOMMatrixReadOnly::rotateAxisAngle(double x, | 192 DOMMatrix* DOMMatrixReadOnly::rotateAxisAngle(double x, |
177 double y, | 193 double y, |
178 double z, | 194 double z, |
179 double angle) { | 195 double angle) { |
180 return DOMMatrix::create(this)->rotateAxisAngleSelf(x, y, z, angle); | 196 return DOMMatrix::create(this)->rotateAxisAngleSelf(x, y, z, angle); |
181 } | 197 } |
182 | 198 |
183 DOMMatrix* DOMMatrixReadOnly::skewX(double sx) { | 199 DOMMatrix* DOMMatrixReadOnly::skewX(double sx) { |
184 return DOMMatrix::create(this)->skewXSelf(sx); | 200 return DOMMatrix::create(this)->skewXSelf(sx); |
185 } | 201 } |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 << m24() << ", " << m31() << ", " << m32() << ", " << m33() << ", " | 261 << m24() << ", " << m31() << ", " << m32() << ", " << m33() << ", " |
246 << m34() << ", " << m41() << ", " << m42() << ", " << m43() << ", " | 262 << m34() << ", " << m41() << ", " << m42() << ", " << m43() << ", " |
247 << m44(); | 263 << m44(); |
248 } | 264 } |
249 stream << ")"; | 265 stream << ")"; |
250 | 266 |
251 return String(stream.str().c_str()); | 267 return String(stream.str().c_str()); |
252 } | 268 } |
253 | 269 |
254 } // namespace blink | 270 } // namespace blink |
OLD | NEW |