Index: content/browser/renderer_host/input/touch_emulator_unittest.cc |
diff --git a/content/browser/renderer_host/input/touch_emulator_unittest.cc b/content/browser/renderer_host/input/touch_emulator_unittest.cc |
index 6b729f18abe9b16ad8a53d7d08287b4b25c20b79..90df132f75f3856e3d7090794490a1b7d8a2af52 100644 |
--- a/content/browser/renderer_host/input/touch_emulator_unittest.cc |
+++ b/content/browser/renderer_host/input/touch_emulator_unittest.cc |
@@ -140,8 +140,8 @@ class TouchEmulatorTest : public testing::Test, |
WebMouseEvent::Button::NoButton; |
last_mouse_x_ = x; |
last_mouse_y_ = y; |
- event.x = event.globalX = x; |
- event.y = event.globalY = y; |
+ event.setPositionInWidget(x, y); |
+ event.setPositionInScreen(x, y); |
emulator()->HandleMouseEvent(event); |
} |