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

Unified Diff: chrome/browser/ui/views/speech_recognition_bubble_views.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: chrome/browser/ui/views/speech_recognition_bubble_views.cc
diff --git a/chrome/browser/ui/views/speech_recognition_bubble_views.cc b/chrome/browser/ui/views/speech_recognition_bubble_views.cc
index 40e7fc9d29206ca5b815824bd7ebc0d4997ebb1f..249ee7707895bb0d96bee0bbd9787f1ac89a171b 100644
--- a/chrome/browser/ui/views/speech_recognition_bubble_views.cc
+++ b/chrome/browser/ui/views/speech_recognition_bubble_views.cc
@@ -128,7 +128,7 @@ gfx::Rect SpeechRecognitionBubbleView::GetAnchorRect() {
gfx::Rect container_rect;
web_contents_->GetContainerBounds(&container_rect);
gfx::Rect anchor(element_rect_);
- anchor.Offset(container_rect.origin());
+ anchor.Offset(container_rect.OffsetFromOrigin());
if (!container_rect.Intersects(anchor))
return BubbleDelegateView::GetAnchorRect();
return anchor;

Powered by Google App Engine
This is Rietveld 408576698