Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(548)

Unified Diff: components/test_runner/web_ax_object_proxy.cc

Issue 2287433003: Get rid of remaining uses of AXObject::elementRect (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {

Powered by Google App Engine
This is Rietveld 408576698