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 1dbe3be923ceee7f453af8c15f00bab4d6773206..97a9b88494f30039c1807fed848774d8a210e30e 100644 |
--- a/components/test_runner/web_ax_object_proxy.cc |
+++ b/components/test_runner/web_ax_object_proxy.cc |
@@ -1049,12 +1049,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() { |