Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp

Issue 2365153002: [GeometryInterface] Add rotateAxisAngle*(x,y,z,angle) function. (Closed)
Patch Set: update test. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
166 166
167 DOMMatrix* DOMMatrixReadOnly::scaleNonUniform(double sx, 167 DOMMatrix* DOMMatrixReadOnly::scaleNonUniform(double sx,
168 double sy, 168 double sy,
169 double sz, 169 double sz,
170 double ox, 170 double ox,
171 double oy, 171 double oy,
172 double oz) { 172 double oz) {
173 return DOMMatrix::create(this)->scaleNonUniformSelf(sx, sy, sz, ox, oy, oz); 173 return DOMMatrix::create(this)->scaleNonUniformSelf(sx, sy, sz, ox, oy, oz);
174 } 174 }
175 175
176 DOMMatrix* DOMMatrixReadOnly::rotateAxisAngle(double x,
177 double y,
178 double z,
179 double angle) {
180 return DOMMatrix::create(this)->rotateAxisAngleSelf(x, y, z, angle);
181 }
182
176 DOMMatrix* DOMMatrixReadOnly::skewX(double sx) { 183 DOMMatrix* DOMMatrixReadOnly::skewX(double sx) {
177 return DOMMatrix::create(this)->skewXSelf(sx); 184 return DOMMatrix::create(this)->skewXSelf(sx);
178 } 185 }
179 186
180 DOMMatrix* DOMMatrixReadOnly::skewY(double sy) { 187 DOMMatrix* DOMMatrixReadOnly::skewY(double sy) {
181 return DOMMatrix::create(this)->skewYSelf(sy); 188 return DOMMatrix::create(this)->skewYSelf(sy);
182 } 189 }
183 190
184 DOMMatrix* DOMMatrixReadOnly::flipX() { 191 DOMMatrix* DOMMatrixReadOnly::flipX() {
185 DOMMatrix* flipX = DOMMatrix::create(this); 192 DOMMatrix* flipX = DOMMatrix::create(this);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 << m24() << ", " << m31() << ", " << m32() << ", " << m33() << ", " 245 << m24() << ", " << m31() << ", " << m32() << ", " << m33() << ", "
239 << m34() << ", " << m41() << ", " << m42() << ", " << m43() << ", " 246 << m34() << ", " << m41() << ", " << m42() << ", " << m43() << ", "
240 << m44(); 247 << m44();
241 } 248 }
242 stream << ")"; 249 stream << ")";
243 250
244 return String(stream.str().c_str()); 251 return String(stream.str().c_str());
245 } 252 }
246 253
247 } // namespace blink 254 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.h ('k') | third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698