Index: content/renderer/render_view_browsertest.cc |
diff --git a/content/renderer/render_view_browsertest.cc b/content/renderer/render_view_browsertest.cc |
index eee162c1b8c93482bf97558857f9e0056134070d..918e77ed7a3c2de5dd4c68e09a70511a4930b195 100644 |
--- a/content/renderer/render_view_browsertest.cc |
+++ b/content/renderer/render_view_browsertest.cc |
@@ -1409,10 +1409,8 @@ TEST_F(RenderViewImplTest, ContextMenu) { |
WebInputEvent::NoModifiers, |
ui::EventTimeStampToSeconds(ui::EventTimeForNow())); |
mouse_event.button = WebMouseEvent::Button::Right; |
- mouse_event.x = 250; |
- mouse_event.y = 250; |
- mouse_event.globalX = 250; |
- mouse_event.globalY = 250; |
+ mouse_event.setPositionInWidget(250, 250); |
+ mouse_event.setPositionInScreen(250, 250); |
SendWebMouseEvent(mouse_event); |