Index: content/renderer/gpu/gpu_benchmarking_extension.cc |
diff --git a/content/renderer/gpu/gpu_benchmarking_extension.cc b/content/renderer/gpu/gpu_benchmarking_extension.cc |
index ea33b0074b6dceb350dc6ef9208bd4c159839c9c..b4993edef69092c05126bca3671b0c5c331d8ea1 100644 |
--- a/content/renderer/gpu/gpu_benchmarking_extension.cc |
+++ b/content/renderer/gpu/gpu_benchmarking_extension.cc |
@@ -361,8 +361,9 @@ bool BeginSmoothScroll(v8::Isolate* isolate, |
blink::WebMouseEvent mouseMove( |
blink::WebInputEvent::MouseMove, blink::WebInputEvent::NoModifiers, |
ui::EventTimeStampToSeconds(ui::EventTimeForNow())); |
- mouseMove.x = (contentRect.x + contentRect.width / 2) * page_scale_factor; |
- mouseMove.y = (contentRect.y + contentRect.height / 2) * page_scale_factor; |
+ mouseMove.setPositionInWidget( |
+ (contentRect.x + contentRect.width / 2) * page_scale_factor, |
+ (contentRect.y + contentRect.height / 2) * page_scale_factor); |
context.web_view()->handleInputEvent( |
blink::WebCoalescedInputEvent(mouseMove)); |
context.web_view()->setCursorVisibilityState(true); |