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

Unified Diff: Source/platform/transforms/TransformationMatrix.cpp

Issue 1157243008: Removing unused method TransformationMatrix::rectToRect() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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 | « Source/platform/transforms/TransformationMatrix.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/transforms/TransformationMatrix.cpp
diff --git a/Source/platform/transforms/TransformationMatrix.cpp b/Source/platform/transforms/TransformationMatrix.cpp
index 2aa16d3be4500569f3b4a30f8828d1f1e45e49b2..0ff20f9bfc50f3279426c3efa6d462cf8fb85297 100644
--- a/Source/platform/transforms/TransformationMatrix.cpp
+++ b/Source/platform/transforms/TransformationMatrix.cpp
@@ -1088,16 +1088,6 @@ TransformationMatrix& TransformationMatrix::applyPerspective(double p)
return *this;
}
-TransformationMatrix TransformationMatrix::rectToRect(const FloatRect& from, const FloatRect& to)
-{
- ASSERT(!from.isEmpty());
- return TransformationMatrix(to.width() / from.width(),
- 0, 0,
- to.height() / from.height(),
- to.x() - from.x(),
- to.y() - from.y());
-}
-
// this = mat * this.
TransformationMatrix& TransformationMatrix::multiply(const TransformationMatrix& mat)
{
« no previous file with comments | « Source/platform/transforms/TransformationMatrix.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698