Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / content / test / web_gesture_curve_mock.cc
index f60733c..1007b7e 100644 (file)
@@ -23,10 +23,9 @@ bool WebGestureCurveMock::apply(double time,
   blink::WebFloatSize increment(displacement.width - cumulative_scroll_.width,
       displacement.height - cumulative_scroll_.height);
   cumulative_scroll_ = displacement;
-  target->notifyCurrentFlingVelocity(blink::WebFloatSize(velocity_.x,
-                                                          velocity_.y));
+  blink::WebFloatSize velocity(velocity_.x, velocity_.y);
   // scrollBy() could delete this curve if the animation is over, so don't
   // touch any member variables after making that call.
-  target->scrollBy(increment);
+  target->scrollBy(increment, velocity);
   return true;
 }