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

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: remove SizeOfVector 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..8c8452bb1d572e544ff78ac33801ef7ffc1b01bd 100644
--- a/content/browser/accessibility/browser_accessibility.cc
+++ b/content/browser/accessibility/browser_accessibility.cc
@@ -151,7 +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();
+ gfx::Vector2d top_left = manager_->GetViewBounds().DistanceFromOrigin();
bounds.Offset(top_left);
return bounds;

Powered by Google App Engine
This is Rietveld 408576698