Index: components/test_runner/web_ax_object_proxy.cc |
diff --git a/components/test_runner/web_ax_object_proxy.cc b/components/test_runner/web_ax_object_proxy.cc |
index 5691cf852978717ad92a345a9a00f3be58e9590e..8ab655ff78921a80191dcac3dac7599e09e44dbd 100644 |
--- a/components/test_runner/web_ax_object_proxy.cc |
+++ b/components/test_runner/web_ax_object_proxy.cc |
@@ -1056,12 +1056,14 @@ int WebAXObjectProxy::SetSize() { |
int WebAXObjectProxy::ClickPointX() { |
accessibility_object_.updateLayoutAndCheckValidity(); |
- return accessibility_object_.clickPoint().x; |
+ blink::WebFloatRect bounds = BoundsForObject(accessibility_object_); |
+ return bounds.x + bounds.width / 2; |
} |
int WebAXObjectProxy::ClickPointY() { |
accessibility_object_.updateLayoutAndCheckValidity(); |
- return accessibility_object_.clickPoint().y; |
+ blink::WebFloatRect bounds = BoundsForObject(accessibility_object_); |
+ return bounds.y + bounds.height / 2; |
} |
int32_t WebAXObjectProxy::RowCount() { |