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

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: rebasefinal 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..b0900ebf3e58e8be7ea9b1d171ea715e97a8137b 100644
--- a/content/browser/accessibility/browser_accessibility.cc
+++ b/content/browser/accessibility/browser_accessibility.cc
@@ -151,8 +151,8 @@ 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);
+ gfx::Vector2d view_offset = manager_->GetViewBounds().OffsetFromOrigin();
danakj 2012/10/29 19:17:20 inlined.
+ bounds.Offset(view_offset);
return bounds;
}

Powered by Google App Engine
This is Rietveld 408576698