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

Unified Diff: ui/gfx/transform.cc

Issue 15972006: TransformOperations should be able to blend outside the range [0, 1] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 | « cc/animation/transform_operations_unittest.cc ('k') | ui/gfx/transform_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/transform.cc
diff --git a/ui/gfx/transform.cc b/ui/gfx/transform.cc
index 5e8799841fc4508782958a3aa716e3c5fe30630e..09a213ebbf05ae9b8b2210aab4988f7addc05af8 100644
--- a/ui/gfx/transform.cc
+++ b/ui/gfx/transform.cc
@@ -365,14 +365,6 @@ bool Transform::TransformRectReverse(RectF* rect) const {
}
bool Transform::Blend(const Transform& from, double progress) {
- if (progress <= 0.0) {
- *this = from;
- return true;
- }
-
- if (progress >= 1.0)
- return true;
-
DecomposedTransform to_decomp;
DecomposedTransform from_decomp;
if (!DecomposeTransform(&to_decomp, *this) ||
« no previous file with comments | « cc/animation/transform_operations_unittest.cc ('k') | ui/gfx/transform_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698