From 0c7363393334265c29401d7f6967347ce7e7f1ae Mon Sep 17 00:00:00 2001 From: Nicolas Roard Date: Tue, 6 Apr 2010 19:49:13 -0700 Subject: Only allow animations computed on the UI if we have two steps -- otherwise let webkit do it. Bug:2576137 Change-Id: Ib86814f5edaff518df9d30839098ac3e8633341e --- WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'WebCore/platform') diff --git a/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp b/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp index fa4a180..b8a3610 100644 --- a/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp +++ b/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp @@ -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; -- cgit v1.1