OSDN Git Service

Only allow animations computed on the UI if we have two steps -- otherwise let webkit...
authorNicolas Roard <nicolas@android.com>
Wed, 7 Apr 2010 02:49:13 +0000 (19:49 -0700)
committerNicolas Roard <nicolas@android.com>
Wed, 7 Apr 2010 18:08:27 +0000 (11:08 -0700)
Bug:2576137
Change-Id: Ib86814f5edaff518df9d30839098ac3e8633341e

WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp

index fa4a180..b8a3610 100644 (file)
@@ -535,7 +535,7 @@ bool GraphicsLayerAndroid::addAnimation(const KeyframeValueList& valueList,
                                         const String& keyframesName,
                                         double beginTime)
 {
-    if (!anim || anim->isEmptyOrZeroDuration() || valueList.size() < 2)
+    if (!anim || anim->isEmptyOrZeroDuration() || valueList.size() != 2)
     return false;
 
     bool createdAnimations = false;