summaryrefslogtreecommitdiffstats
path: root/webkit/glue/fling_animator_impl_android.cc
diff options
context:
space:
mode:
authorhusky@chromium.org <husky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-11 20:22:54 +0000
committerhusky@chromium.org <husky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-11 20:22:54 +0000
commit42c3a63a841fe2b93ca649a3e2bbcbbd0e7bd345 (patch)
tree8c10594439eff79bc0053e13b06573f70be81cdd /webkit/glue/fling_animator_impl_android.cc
parent720ad660650f036d1ad97e38dab33f659682a36e (diff)
downloadchromium_src-42c3a63a841fe2b93ca649a3e2bbcbbd0e7bd345.zip
chromium_src-42c3a63a841fe2b93ca649a3e2bbcbbd0e7bd345.tar.gz
chromium_src-42c3a63a841fe2b93ca649a3e2bbcbbd0e7bd345.tar.bz2
Don't invert fling velocity on Android.
Not needed! Before this patch, flings are going in exactly the wrong direction in the Android content shell. TEST=manual BUG=None Review URL: https://chromiumcodereview.appspot.com/10919218 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156111 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/fling_animator_impl_android.cc')
-rw-r--r--webkit/glue/fling_animator_impl_android.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/webkit/glue/fling_animator_impl_android.cc b/webkit/glue/fling_animator_impl_android.cc
index b125c41..8304c5a 100644
--- a/webkit/glue/fling_animator_impl_android.cc
+++ b/webkit/glue/fling_animator_impl_android.cc
@@ -47,7 +47,8 @@ void FlingAnimatorImpl::startFling(const WebKit::WebFloatPoint& velocity,
JNIEnv* env = AttachCurrentThread();
env->CallVoidMethod(java_scroller_.obj(), fling_method_id_, 0, 0,
- (int) -velocity.x, (int) -velocity.y,
+ static_cast<int>(velocity.x),
+ static_cast<int>(velocity.y),
range.x, range.x + range.width,
range.y, range.y + range.height, 0, 0);
CheckException(env);