summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorNicolas Roard <nicolasroard@google.com>2011-04-01 11:05:30 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-04-01 11:05:30 -0700
commite7c63dbaf937c9e5d6496718538831e481fd4c7e (patch)
tree23284e2f4bd90b5c17afc9f34bd1828075f32e43 /WebCore
parent23bd36833db1bee032bbf7c058fa390f453097cc (diff)
parentca84feebe782358e319da8bd13938179e941f9b4 (diff)
downloadexternal_webkit-e7c63dbaf937c9e5d6496718538831e481fd4c7e.zip
external_webkit-e7c63dbaf937c9e5d6496718538831e481fd4c7e.tar.gz
external_webkit-e7c63dbaf937c9e5d6496718538831e481fd4c7e.tar.bz2
am ca84feeb: Merge "Fix animations bug" into honeycomb-mr1
* commit 'ca84feebe782358e319da8bd13938179e941f9b4': Fix animations bug
Diffstat (limited to 'WebCore')
-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)"