| Index: components/html_viewer/html_frame.cc
|
| diff --git a/components/html_viewer/html_frame.cc b/components/html_viewer/html_frame.cc
|
| index 718722fb04fe2d50de27ac27a08a37640f02c8bd..9d7fe387f224da4d9e68b69c67dbc2dfff6e42a8 100644
|
| --- a/components/html_viewer/html_frame.cc
|
| +++ b/components/html_viewer/html_frame.cc
|
| @@ -631,12 +631,10 @@
|
| void HTMLFrame::OnViewInputEvent(View* view, const mojo::EventPtr& event) {
|
| if (event->pointer_data) {
|
| // Blink expects coordintes to be in DIPs.
|
| - event->pointer_data->location->x /= global_state()->device_pixel_ratio();
|
| - event->pointer_data->location->y /= global_state()->device_pixel_ratio();
|
| - event->pointer_data->location->screen_x /=
|
| - global_state()->device_pixel_ratio();
|
| - event->pointer_data->location->screen_y /=
|
| - global_state()->device_pixel_ratio();
|
| + event->pointer_data->x /= global_state()->device_pixel_ratio();
|
| + event->pointer_data->y /= global_state()->device_pixel_ratio();
|
| + event->pointer_data->screen_x /= global_state()->device_pixel_ratio();
|
| + event->pointer_data->screen_y /= global_state()->device_pixel_ratio();
|
| }
|
|
|
| blink::WebWidget* web_widget = GetWebWidget();
|
|
|