Index: chrome/browser/chromeos/input_method/textinput_test_helper.cc |
diff --git a/chrome/browser/chromeos/input_method/textinput_test_helper.cc b/chrome/browser/chromeos/input_method/textinput_test_helper.cc |
index 1e7d233474698204fc4f3018942b4f3ea3c8b448..559d6e1ffaa9a7e542f12fadf7c2f04cc333acd4 100644 |
--- a/chrome/browser/chromeos/input_method/textinput_test_helper.cc |
+++ b/chrome/browser/chromeos/input_method/textinput_test_helper.cc |
@@ -200,8 +200,8 @@ bool TextInputTestHelper::ClickElement(const std::string& id, |
blink::WebInputEvent::NoModifiers, |
blink::WebInputEvent::TimeStampForTesting); |
mouse_event.button = blink::WebMouseEvent::Button::Left; |
- mouse_event.x = rect.CenterPoint().x(); |
- mouse_event.y = rect.CenterPoint().y(); |
+ mouse_event.setPositionInWidget(rect.CenterPoint().x(), |
+ rect.CenterPoint().y()); |
mouse_event.clickCount = 1; |
tab->GetRenderViewHost()->GetWidget()->ForwardMouseEvent(mouse_event); |