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

Unified Diff: chrome/renderer/extensions/automation_internal_custom_bindings.cc

Issue 2285913002: Fix small error in relative bounds calc for Chrome OS only. (Closed)
Patch Set: Add regression test 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: chrome/renderer/extensions/automation_internal_custom_bindings.cc
diff --git a/chrome/renderer/extensions/automation_internal_custom_bindings.cc b/chrome/renderer/extensions/automation_internal_custom_bindings.cc
index 6fc8560df45170bede51497bc66601b52b015bcf..78e51c92e7b73870958995306070e937e65cfac3 100644
--- a/chrome/renderer/extensions/automation_internal_custom_bindings.cc
+++ b/chrome/renderer/extensions/automation_internal_custom_bindings.cc
@@ -134,7 +134,7 @@ static gfx::Rect ComputeGlobalNodeBounds(TreeCache* cache, ui::AXNode* node) {
if (!container || container == node)
break;
- gfx::RectF container_bounds = ComputeLocalNodeBounds(cache, container);
+ gfx::RectF container_bounds = container->data().location;
bounds.Offset(container_bounds.x(), container_bounds.y());
int scroll_x = 0;

Powered by Google App Engine
This is Rietveld 408576698