Index: third_party/WebKit/Source/web/tests/WebViewTest.cpp |
diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp |
index f89ecf2332a07dbb2d6aadc01d3cdabb2ebdbe01..d7c8533be788fdfc496d037ec9710d407020c725 100644 |
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp |
@@ -2542,8 +2542,7 @@ TEST_P(WebViewTest, BlinkCaretOnClosingContextMenu) { |
WebInputEvent::TimeStampForTesting); |
mouseEvent.button = WebMouseEvent::Button::Right; |
- mouseEvent.x = 1; |
- mouseEvent.y = 1; |
+ mouseEvent.setPositionInWidget(1, 1); |
mouseEvent.clickCount = 1; |
webView->handleInputEvent(WebCoalescedInputEvent(mouseEvent)); |
runPendingTasks(); |
@@ -3589,8 +3588,7 @@ TEST_P(WebViewTest, FirstUserGestureObservedMouseEvent) { |
WebMouseEvent mouseEvent(WebInputEvent::MouseDown, WebInputEvent::NoModifiers, |
WebInputEvent::TimeStampForTesting); |
mouseEvent.button = WebMouseEvent::Button::Left; |
- mouseEvent.x = 1; |
- mouseEvent.y = 1; |
+ mouseEvent.setPositionInWidget(1, 1); |
mouseEvent.clickCount = 1; |
webView->handleInputEvent(WebCoalescedInputEvent(mouseEvent)); |
mouseEvent.setType(WebInputEvent::MouseUp); |