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

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

Issue 2387003002: [GeometryInterface] remove scaleNonUniform* method. (Closed)
Patch Set: rebase origin 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 DOMMatrix* DOMMatrixReadOnly::multiply(DOMMatrixInit& other, 147 DOMMatrix* DOMMatrixReadOnly::multiply(DOMMatrixInit& other,
148 ExceptionState& exceptionState) { 148 ExceptionState& exceptionState) {
149 return DOMMatrix::create(this)->multiplySelf(other, exceptionState); 149 return DOMMatrix::create(this)->multiplySelf(other, exceptionState);
150 } 150 }
151 151
152 DOMMatrix* DOMMatrixReadOnly::translate(double tx, double ty, double tz) { 152 DOMMatrix* DOMMatrixReadOnly::translate(double tx, double ty, double tz) {
153 return DOMMatrix::create(this)->translateSelf(tx, ty, tz); 153 return DOMMatrix::create(this)->translateSelf(tx, ty, tz);
154 } 154 }
155 155
156 DOMMatrix* DOMMatrixReadOnly::scale(double scale, double ox, double oy) { 156 DOMMatrix* DOMMatrixReadOnly::scale(double sx) {
157 return DOMMatrix::create(this)->scaleSelf(scale, ox, oy); 157 return scale(sx, sx);
158 }
159
160 DOMMatrix* DOMMatrixReadOnly::scale(double sx,
161 double sy,
162 double sz,
163 double ox,
164 double oy,
165 double oz) {
166 return DOMMatrix::create(this)->scaleSelf(sx, sy, sz, ox, oy, oz);
158 } 167 }
159 168
160 DOMMatrix* DOMMatrixReadOnly::scale3d(double scale, 169 DOMMatrix* DOMMatrixReadOnly::scale3d(double scale,
161 double ox, 170 double ox,
162 double oy, 171 double oy,
163 double oz) { 172 double oz) {
164 return DOMMatrix::create(this)->scale3dSelf(scale, ox, oy, oz); 173 return DOMMatrix::create(this)->scale3dSelf(scale, ox, oy, oz);
165 } 174 }
166 175
167 DOMMatrix* DOMMatrixReadOnly::scaleNonUniform(double sx,
168 double sy,
169 double sz,
170 double ox,
171 double oy,
172 double oz) {
173 return DOMMatrix::create(this)->scaleNonUniformSelf(sx, sy, sz, ox, oy, oz);
174 }
175
176 DOMMatrix* DOMMatrixReadOnly::rotateAxisAngle(double x, 176 DOMMatrix* DOMMatrixReadOnly::rotateAxisAngle(double x,
177 double y, 177 double y,
178 double z, 178 double z,
179 double angle) { 179 double angle) {
180 return DOMMatrix::create(this)->rotateAxisAngleSelf(x, y, z, angle); 180 return DOMMatrix::create(this)->rotateAxisAngleSelf(x, y, z, angle);
181 } 181 }
182 182
183 DOMMatrix* DOMMatrixReadOnly::skewX(double sx) { 183 DOMMatrix* DOMMatrixReadOnly::skewX(double sx) {
184 return DOMMatrix::create(this)->skewXSelf(sx); 184 return DOMMatrix::create(this)->skewXSelf(sx);
185 } 185 }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 << m24() << ", " << m31() << ", " << m32() << ", " << m33() << ", " 245 << m24() << ", " << m31() << ", " << m32() << ", " << m33() << ", "
246 << m34() << ", " << m41() << ", " << m42() << ", " << m43() << ", " 246 << m34() << ", " << m41() << ", " << m42() << ", " << m43() << ", "
247 << m44(); 247 << m44();
248 } 248 }
249 stream << ")"; 249 stream << ")";
250 250
251 return String(stream.str().c_str()); 251 return String(stream.str().c_str());
252 } 252 }
253 253
254 } // 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