summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Roard <nicolasroard@google.com>2011-04-01 10:53:22 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-04-01 10:53:22 -0700
commitca84feebe782358e319da8bd13938179e941f9b4 (patch)
tree23284e2f4bd90b5c17afc9f34bd1828075f32e43
parent39ff342cb3755bb7529c775a6d15b1ccbbe9be6a (diff)
parent86af5f6d35a31ca20a264cdc66bcd88c04d11a92 (diff)
downloadexternal_webkit-ca84feebe782358e319da8bd13938179e941f9b4.zip
external_webkit-ca84feebe782358e319da8bd13938179e941f9b4.tar.gz
external_webkit-ca84feebe782358e319da8bd13938179e941f9b4.tar.bz2
Merge "Fix animations bug" into honeycomb-mr1
-rw-r--r--WebCore/platform/graphics/android/AndroidAnimation.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/android/AndroidAnimation.cpp b/WebCore/platform/graphics/android/AndroidAnimation.cpp
index 199db53..be9e0ee 100644
--- a/WebCore/platform/graphics/android/AndroidAnimation.cpp
+++ b/WebCore/platform/graphics/android/AndroidAnimation.cpp
@@ -230,6 +230,11 @@ bool AndroidOpacityAnimation::evaluate(LayerAndroid* layer, double time)
if (progress < 0) // we still want to be evaluated until we get progress > 0
return true;
+ if (progress >= 1) {
+ m_finished = true;
+ return false;
+ }
+
// First, we need to get the from and to values
int from, to;
@@ -293,6 +298,11 @@ bool AndroidTransformAnimation::evaluate(LayerAndroid* layer, double time)
if (progress < 0) // we still want to be evaluated until we get progress > 0
return true;
+ if (progress >= 1) {
+ m_finished = true;
+ return false;
+ }
+
IntSize size(layer->getSize().width(), layer->getSize().height());
TransformationMatrix matrix;
XLOG("Evaluate transforms animations, %d operations, progress %.2f for layer %d (%d, %d)"