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

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

Issue 2387003002: [GeometryInterface] remove scaleNonUniform* method. (Closed)
Patch Set: add 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 DOMMatrix* DOMMatrixReadOnly::multiply(DOMMatrixInit& other, ExceptionState& exc eptionState) 146 DOMMatrix* DOMMatrixReadOnly::multiply(DOMMatrixInit& other, ExceptionState& exc eptionState)
147 { 147 {
148 return DOMMatrix::create(this)->multiplySelf(other, exceptionState); 148 return DOMMatrix::create(this)->multiplySelf(other, exceptionState);
149 } 149 }
150 150
151 DOMMatrix* DOMMatrixReadOnly::translate(double tx, double ty, double tz) 151 DOMMatrix* DOMMatrixReadOnly::translate(double tx, double ty, double tz)
152 { 152 {
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 { 157 {
158 return DOMMatrix::create(this)->scaleSelf(scale, ox, oy); 158 return scale(sx, sx);
159 }
160
161 DOMMatrix* DOMMatrixReadOnly::scale(double sx, double sy, double sz,
162 double ox, double oy, double oz)
163 {
164 return DOMMatrix::create(this)->scaleSelf(sx, sy, sz, ox, oy, oz);
159 } 165 }
160 166
161 DOMMatrix* DOMMatrixReadOnly::scale3d(double scale, double ox, double oy, double oz) 167 DOMMatrix* DOMMatrixReadOnly::scale3d(double scale, double ox, double oy, double oz)
162 { 168 {
163 return DOMMatrix::create(this)->scale3dSelf(scale, ox, oy, oz); 169 return DOMMatrix::create(this)->scale3dSelf(scale, ox, oy, oz);
164 } 170 }
165 171
166 DOMMatrix* DOMMatrixReadOnly::scaleNonUniform(double sx, double sy, double sz,
167 double ox, double oy, double oz)
168 {
169 return DOMMatrix::create(this)->scaleNonUniformSelf(sx, sy, sz, ox, oy, oz);
170 }
171
172 DOMMatrix* DOMMatrixReadOnly::skewX(double sx) 172 DOMMatrix* DOMMatrixReadOnly::skewX(double sx)
173 { 173 {
174 return DOMMatrix::create(this)->skewXSelf(sx); 174 return DOMMatrix::create(this)->skewXSelf(sx);
175 } 175 }
176 176
177 DOMMatrix* DOMMatrixReadOnly::skewY(double sy) 177 DOMMatrix* DOMMatrixReadOnly::skewY(double sy)
178 { 178 {
179 return DOMMatrix::create(this)->skewYSelf(sy); 179 return DOMMatrix::create(this)->skewYSelf(sy);
180 } 180 }
181 181
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 << m21() << ", " << m22() << ", " << m23() << ", " << m24() << ", " 241 << m21() << ", " << m22() << ", " << m23() << ", " << m24() << ", "
242 << m31() << ", " << m32() << ", " << m33() << ", " << m34() << ", " 242 << m31() << ", " << m32() << ", " << m33() << ", " << m34() << ", "
243 << m41() << ", " << m42() << ", " << m43() << ", " << m44(); 243 << m41() << ", " << m42() << ", " << m43() << ", " << m44();
244 } 244 }
245 stream << ")"; 245 stream << ")";
246 246
247 return String(stream.str().c_str()); 247 return String(stream.str().c_str());
248 } 248 }
249 249
250 } // namespace blink 250 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698