Connect up fling event delivery to gesture curve animation framework
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Mar 2012 10:20:02 +0000 (10:20 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Mar 2012 10:20:02 +0000 (10:20 +0000)
https://bugs.webkit.org/show_bug.cgi?id=80858

Patch by Robert Kroeger <rjkroege@chromium.org> on 2012-03-16
Reviewed by Adam Barth.

* platform/ScrollAnimatorNone.cpp:
(WebCore::ScrollAnimatorNone::fireUpAnAnimation):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110978 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/ScrollAnimatorNone.cpp

index 6414d1cded9209517f56ae915a683de5e597a1ae..f84aa9a50746065b1e9d40cf3413f06627685675 100644 (file)
@@ -1,3 +1,13 @@
+2012-03-16  Robert Kroeger  <rjkroege@chromium.org>
+
+        Connect up fling event delivery to gesture curve animation framework
+        https://bugs.webkit.org/show_bug.cgi?id=80858
+
+        Reviewed by Adam Barth.
+
+        * platform/ScrollAnimatorNone.cpp:
+        (WebCore::ScrollAnimatorNone::fireUpAnAnimation):
+
 2012-03-16  Nate Chapin  <japhet@chromium.org>
 
         Remove duplicate error() impls in CachedResource subclasses
index e12587c3e63e66bf2f3d5a3a636fc2117ebb3700..0cd1004e5c0ac29c995967840dfa5d0de74b1801 100644 (file)
@@ -394,7 +394,10 @@ ScrollAnimatorNone::~ScrollAnimatorNone()
 
 void ScrollAnimatorNone::fireUpAnAnimation(FloatPoint fp)
 {
-    UNUSED_PARAM(fp);
+    if (m_gestureAnimation)
+        m_gestureAnimation.clear();
+    m_gestureAnimation = ActivePlatformGestureAnimation::create(TouchFlingPlatformGestureCurve::create(fp), this);
+    startNextTimer();
 }
 
 bool ScrollAnimatorNone::scroll(ScrollbarOrientation orientation, ScrollGranularity granularity, float step, float multiplier)