Index: content/public/test/render_view_test.cc |
diff --git a/content/public/test/render_view_test.cc b/content/public/test/render_view_test.cc |
index 881aef80dd956a6b32e28d4c3015d3e8e9e87499..4c37059ee78ddf257f41ea23529513bd2136d76a 100644 |
--- a/content/public/test/render_view_test.cc |
+++ b/content/public/test/render_view_test.cc |
@@ -449,8 +449,7 @@ void RenderViewTest::SimulatePointClick(const gfx::Point& point) { |
WebInputEvent::NoModifiers, |
ui::EventTimeStampToSeconds(ui::EventTimeForNow())); |
mouse_event.button = WebMouseEvent::Button::Left; |
- mouse_event.x = point.x(); |
- mouse_event.y = point.y(); |
+ mouse_event.setPositionInWidget(point.x(), point.y()); |
mouse_event.clickCount = 1; |
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); |
impl->OnMessageReceived(InputMsg_HandleInputEvent( |
@@ -476,8 +475,7 @@ void RenderViewTest::SimulatePointRightClick(const gfx::Point& point) { |
WebInputEvent::NoModifiers, |
ui::EventTimeStampToSeconds(ui::EventTimeForNow())); |
mouse_event.button = WebMouseEvent::Button::Right; |
- mouse_event.x = point.x(); |
- mouse_event.y = point.y(); |
+ mouse_event.setPositionInWidget(point.x(), point.y()); |
mouse_event.clickCount = 1; |
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); |
impl->OnMessageReceived(InputMsg_HandleInputEvent( |