commit | 0c7363393334265c29401d7f6967347ce7e7f1ae | [log] [tgz] |
---|---|---|
author | Nicolas Roard <nicolas@android.com> | Tue Apr 06 19:49:13 2010 -0700 |
committer | Nicolas Roard <nicolas@android.com> | Wed Apr 07 11:08:27 2010 -0700 |
tree | 31f55302293a67cb452f9e2dd11e3982e38eb04e | |
parent | 72d9dfdf789b6b5f6d7d692fe1a468f7ecca703e [diff] |
Only allow animations computed on the UI if we have two steps -- otherwise let webkit do it. Bug:2576137 Change-Id: Ib86814f5edaff518df9d30839098ac3e8633341e
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 @@ const String& keyframesName, double beginTime) { - if (!anim || anim->isEmptyOrZeroDuration() || valueList.size() < 2) + if (!anim || anim->isEmptyOrZeroDuration() || valueList.size() != 2) return false; bool createdAnimations = false;