Title: [110978] trunk/Source/WebCore
Revision
110978
Author
commit-qu...@webkit.org
Date
2012-03-16 03:20:02 -0700 (Fri, 16 Mar 2012)

Log Message

Connect up fling event delivery to gesture curve animation framework
https://bugs.webkit.org/show_bug.cgi?id=80858

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

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (110977 => 110978)


--- trunk/Source/WebCore/ChangeLog	2012-03-16 09:48:25 UTC (rev 110977)
+++ trunk/Source/WebCore/ChangeLog	2012-03-16 10:20:02 UTC (rev 110978)
@@ -1,3 +1,13 @@
+2012-03-16  Robert Kroeger  <rjkro...@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  <jap...@chromium.org>
 
         Remove duplicate error() impls in CachedResource subclasses

Modified: trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp (110977 => 110978)


--- trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp	2012-03-16 09:48:25 UTC (rev 110977)
+++ trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp	2012-03-16 10:20:02 UTC (rev 110978)
@@ -394,7 +394,10 @@
 
 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)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to