| Index: content/browser/android/content_view_core_impl.cc
|
| diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
|
| index dc54296a142d6792de3defe8f253de598eed333a..2d028e804269d08428e6da4e2ffdb85f97911389 100644
|
| --- a/content/browser/android/content_view_core_impl.cc
|
| +++ b/content/browser/android/content_view_core_impl.cc
|
| @@ -369,8 +369,7 @@ void ContentViewCoreImpl::RenderViewReady() {
|
| }
|
|
|
| void ContentViewCoreImpl::OnGestureEvent(const ui::GestureEventData& gesture) {
|
| - SendGestureEvent(
|
| - CreateWebGestureEventFromGestureEventData(gesture, 1.f / dpi_scale()));
|
| + SendGestureEvent(CreateWebGestureEventFromGestureEventData(gesture));
|
| }
|
|
|
| RenderWidgetHostViewAndroid*
|
| @@ -1052,7 +1051,8 @@ jboolean ContentViewCoreImpl::OnTouchEvent(JNIEnv* env,
|
| if (!rwhv)
|
| return false;
|
|
|
| - MotionEventAndroid event(env,
|
| + MotionEventAndroid event(1.f / dpi_scale(),
|
| + env,
|
| motion_event,
|
| time_ms,
|
| android_action,
|
| @@ -1139,8 +1139,7 @@ bool ContentViewCoreImpl::OnMotionEvent(const ui::MotionEvent& event) {
|
| return true;
|
| }
|
|
|
| - rwhv->SendTouchEvent(
|
| - CreateWebTouchEventFromMotionEvent(event, 1.f / dpi_scale()));
|
| + rwhv->SendTouchEvent(CreateWebTouchEventFromMotionEvent(event));
|
| return true;
|
| }
|
|
|
|
|