Index: Source/WebCore/platform/animation/AnimationUtilities.h |
=================================================================== |
--- Source/WebCore/platform/animation/AnimationUtilities.h (revision 106716) |
+++ Source/WebCore/platform/animation/AnimationUtilities.h (working copy) |
@@ -37,7 +37,7 @@ |
inline unsigned blend(unsigned from, unsigned to, double progress) |
{ |
- return static_cast<unsigned>(lround(static_cast<double>(from) + static_cast<double>(to - from) * progress)); |
+ return static_cast<unsigned>(lround(to > from ? static_cast<double>(from) + static_cast<double>(to - from) * progress : static_cast<double>(from) - static_cast<double>(from - to) * progress)); |
} |
inline double blend(double from, double to, double progress) |