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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp b/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp
index 03794b1e4c6b6cfb1f772157f0aa30b6da442cd3..2e412594bdff4864196da749eea0d65cd404e9b1 100644
--- a/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp
@@ -153,20 +153,20 @@ DOMMatrix* DOMMatrixReadOnly::translate(double tx, double ty, double tz)
return DOMMatrix::create(this)->translateSelf(tx, ty, tz);
}
-DOMMatrix* DOMMatrixReadOnly::scale(double scale, double ox, double oy)
+DOMMatrix* DOMMatrixReadOnly::scale(double sx)
{
- return DOMMatrix::create(this)->scaleSelf(scale, ox, oy);
+ return scale(sx, sx);
}
-DOMMatrix* DOMMatrixReadOnly::scale3d(double scale, double ox, double oy, double oz)
+DOMMatrix* DOMMatrixReadOnly::scale(double sx, double sy, double sz,
+ double ox, double oy, double oz)
{
- return DOMMatrix::create(this)->scale3dSelf(scale, ox, oy, oz);
+ return DOMMatrix::create(this)->scaleSelf(sx, sy, sz, ox, oy, oz);
}
-DOMMatrix* DOMMatrixReadOnly::scaleNonUniform(double sx, double sy, double sz,
- double ox, double oy, double oz)
+DOMMatrix* DOMMatrixReadOnly::scale3d(double scale, double ox, double oy, double oz)
{
- return DOMMatrix::create(this)->scaleNonUniformSelf(sx, sy, sz, ox, oy, oz);
+ return DOMMatrix::create(this)->scale3dSelf(scale, ox, oy, oz);
}
DOMMatrix* DOMMatrixReadOnly::skewX(double sx)

Powered by Google App Engine
This is Rietveld 408576698