Index: third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp |
diff --git a/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp b/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp |
index e2e57a32eac8e6861754ae9f417a530a151c1f90..7f3ad4f065a5bce73027e0f649ea1fb3b3f9d57b 100644 |
--- a/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp |
+++ b/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp |
@@ -147,8 +147,8 @@ WebMouseEvent createMouseEvent(WebInputEvent::Type type, |
const IntPoint& point, |
int modifiers) { |
WebMouseEvent result(type, modifiers, WebInputEvent::TimeStampForTesting); |
- result.x = result.globalX = point.x(); |
- result.y = result.globalX = point.y(); |
+ result.setPositionInWidget(point.x(), point.y()); |
+ result.setPositionInScreen(point.x(), point.y()); |
result.button = button; |
result.clickCount = 1; |
return result; |