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

Unified Diff: third_party/WebKit/Source/core/dom/DOMMatrix.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMMatrix.h ('k') | third_party/WebKit/Source/core/dom/DOMMatrix.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/DOMMatrix.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMMatrix.cpp b/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
index 3ccf6bf4ae9afd010483318e35ff3265f452c6e0..eed0a170ce5864c208fa5ca308ce09205b8d3bba 100644
--- a/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
@@ -125,23 +125,16 @@ DOMMatrix* DOMMatrix::translateSelf(double tx, double ty, double tz) {
return this;
}
-DOMMatrix* DOMMatrix::scaleSelf(double scale, double ox, double oy) {
- return scaleNonUniformSelf(scale, scale, 1, ox, oy);
+DOMMatrix* DOMMatrix::scaleSelf(double sx) {
+ return scaleSelf(sx, sx);
}
-DOMMatrix* DOMMatrix::scale3dSelf(double scale,
- double ox,
- double oy,
- double oz) {
- return scaleNonUniformSelf(scale, scale, scale, ox, oy, oz);
-}
-
-DOMMatrix* DOMMatrix::scaleNonUniformSelf(double sx,
- double sy,
- double sz,
- double ox,
- double oy,
- double oz) {
+DOMMatrix* DOMMatrix::scaleSelf(double sx,
+ double sy,
+ double sz,
+ double ox,
+ double oy,
+ double oz) {
if (sz != 1 || oz)
m_is2D = false;
@@ -164,6 +157,13 @@ DOMMatrix* DOMMatrix::scaleNonUniformSelf(double sx,
return this;
}
+DOMMatrix* DOMMatrix::scale3dSelf(double scale,
+ double ox,
+ double oy,
+ double oz) {
+ return scaleSelf(scale, scale, scale, ox, oy, oz);
+}
+
DOMMatrix* DOMMatrix::rotateAxisAngleSelf(double x,
double y,
double z,
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMMatrix.h ('k') | third_party/WebKit/Source/core/dom/DOMMatrix.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698