| Index: content/browser/renderer_host/input/synthetic_gesture_target_android.cc
|
| diff --git a/content/browser/renderer_host/input/synthetic_gesture_target_android.cc b/content/browser/renderer_host/input/synthetic_gesture_target_android.cc
|
| index 836da7db49eba745a8ca5621bae54bc6b1fb4236..501da40d75f10e0e212c7272e67d5acd42af32e0 100644
|
| --- a/content/browser/renderer_host/input/synthetic_gesture_target_android.cc
|
| +++ b/content/browser/renderer_host/input/synthetic_gesture_target_android.cc
|
| @@ -107,16 +107,11 @@ SyntheticGestureTargetAndroid::GetDefaultSyntheticGestureSourceType() const {
|
| }
|
|
|
| float SyntheticGestureTargetAndroid::GetTouchSlopInDips() const {
|
| - float device_scale_factor =
|
| - gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().device_scale_factor();
|
| - return gfx::ViewConfiguration::GetTouchSlopInPixels() / device_scale_factor;
|
| + return gfx::ViewConfiguration::GetTouchSlopInDips();
|
| }
|
|
|
| float SyntheticGestureTargetAndroid::GetMinScalingSpanInDips() const {
|
| - float device_scale_factor =
|
| - gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().device_scale_factor();
|
| - return
|
| - gfx::ViewConfiguration::GetMinScalingSpanInPixels() / device_scale_factor;
|
| + return gfx::ViewConfiguration::GetMinScalingSpanInDips();
|
| }
|
|
|
| } // namespace content
|
|
|