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 7a229f3c9a29299a7b7e9ae5f6b2f48c1776aa80..95b4a2ca6ccd4f483f125cb4934ac2f3bee21796 100644 |
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp |
@@ -2526,8 +2526,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(); |
@@ -3573,8 +3572,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); |