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

Unified Diff: components/test_runner/web_ax_object_proxy.cc

Issue 2287433003: Get rid of remaining uses of AXObject::elementRect (Closed)
Patch Set: Rebase Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/accessibility/image-map-bounds.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/accessibility/image-map-bounds.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698