Index: components/printing/test/print_web_view_helper_browsertest.cc |
diff --git a/components/printing/test/print_web_view_helper_browsertest.cc b/components/printing/test/print_web_view_helper_browsertest.cc |
index ce387743716eb760f925e1ae8b5d3768f6d6b26c..f0f2efac7239de90c6a97f4eccd1367ba9740244 100644 |
--- a/components/printing/test/print_web_view_helper_browsertest.cc |
+++ b/components/printing/test/print_web_view_helper_browsertest.cc |
@@ -359,8 +359,8 @@ TEST_F(MAYBE_PrintWebViewHelperTest, AllowUserOriginatedPrinting) { |
blink::WebInputEvent::NoModifiers, |
blink::WebInputEvent::TimeStampForTesting); |
mouse_event.button = blink::WebMouseEvent::Button::Left; |
- mouse_event.x = bounds.CenterPoint().x(); |
- mouse_event.y = bounds.CenterPoint().y(); |
+ mouse_event.setPositionInWidget(bounds.CenterPoint().x(), |
+ bounds.CenterPoint().y()); |
mouse_event.clickCount = 1; |
SendWebMouseEvent(mouse_event); |
mouse_event.setType(blink::WebInputEvent::MouseUp); |
@@ -666,8 +666,8 @@ TEST_F(MAYBE_PrintWebViewHelperPreviewTest, PrintWithJavaScript) { |
blink::WebInputEvent::NoModifiers, |
blink::WebInputEvent::TimeStampForTesting); |
mouse_event.button = blink::WebMouseEvent::Button::Left; |
- mouse_event.x = bounds.CenterPoint().x(); |
- mouse_event.y = bounds.CenterPoint().y(); |
+ mouse_event.setPositionInWidget(bounds.CenterPoint().x(), |
+ bounds.CenterPoint().y()); |
mouse_event.clickCount = 1; |
SendWebMouseEvent(mouse_event); |
mouse_event.setType(blink::WebInputEvent::MouseUp); |