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

Unified Diff: content/browser/accessibility/browser_accessibility.cc

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderText fixup Created 8 years, 2 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: content/browser/accessibility/browser_accessibility.cc
diff --git a/content/browser/accessibility/browser_accessibility.cc b/content/browser/accessibility/browser_accessibility.cc
index c87abb0f3a41e17c651e2032ccfd2f28c6de9523..857a1619baaf2014b565d74e6e5945fca36dd234 100644
--- a/content/browser/accessibility/browser_accessibility.cc
+++ b/content/browser/accessibility/browser_accessibility.cc
@@ -151,8 +151,7 @@ gfx::Rect BrowserAccessibility::GetGlobalBoundsRect() {
// Adjust the bounds by the top left corner of the containing view's bounds
// in screen coordinates.
- gfx::Point top_left = manager_->GetViewBounds().origin();
- bounds.Offset(top_left);
+ bounds.Offset(manager_->GetViewBounds().OffsetFromOrigin());
return bounds;
}

Powered by Google App Engine
This is Rietveld 408576698