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

Unified Diff: ui/accessibility/platform/ax_platform_node_base.cc

Issue 2795543002: Add GetScreenBoundsRect to ui::AXPlatformNodeDelegate (Closed)
Patch Set: Add GetScreenBoundsRect() to ui::AXPlatformNodeDelegate Created 3 years, 8 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: ui/accessibility/platform/ax_platform_node_base.cc
diff --git a/ui/accessibility/platform/ax_platform_node_base.cc b/ui/accessibility/platform/ax_platform_node_base.cc
index b72f5e8e64a57102769b41e5588044729e2ac6ac..4e8303558734ce4e5e3c7b95c6b468c153d6e4a7 100644
--- a/ui/accessibility/platform/ax_platform_node_base.cc
+++ b/ui/accessibility/platform/ax_platform_node_base.cc
@@ -23,9 +23,7 @@ const AXNodeData& AXPlatformNodeBase::GetData() const {
gfx::Rect AXPlatformNodeBase::GetBoundsInScreen() const {
CHECK(delegate_);
- gfx::Rect bounds = gfx::ToEnclosingRect(GetData().location);
- bounds.Offset(delegate_->GetGlobalCoordinateOffset());
- return bounds;
+ return delegate_->GetScreenBoundsRect();
}
gfx::NativeViewAccessible AXPlatformNodeBase::GetParent() {

Powered by Google App Engine
This is Rietveld 408576698