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

Unified Diff: ui/views/bubble/bubble_delegate.cc

Issue 12545040: A couple of fixes to bubble view: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 9 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
« no previous file with comments | « no previous file | ui/views/bubble/bubble_frame_view.cc » ('j') | ui/views/bubble/bubble_frame_view.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/bubble_delegate.cc
diff --git a/ui/views/bubble/bubble_delegate.cc b/ui/views/bubble/bubble_delegate.cc
index ecee2a0589ff05bec9a7e6f47694084de3d61b74..10a83cd9c0235d6df0c9e8875e6aa448113f1024 100644
--- a/ui/views/bubble/bubble_delegate.cc
+++ b/ui/views/bubble/bubble_delegate.cc
@@ -231,9 +231,8 @@ void BubbleDelegateView::OnWidgetBoundsChanged(Widget* widget,
}
gfx::Rect BubbleDelegateView::GetAnchorRect() {
- if (!anchor_view())
- return gfx::Rect(anchor_point_, gfx::Size());
- gfx::Rect anchor_bounds = anchor_view()->GetBoundsInScreen();
+ gfx::Rect anchor_bounds = anchor_view()? anchor_view()->GetBoundsInScreen() :
msw 2013/03/14 20:17:58 nit: space before '?'
varunjain 2013/03/14 20:54:59 Done.
+ gfx::Rect(anchor_point_, gfx::Size());
anchor_bounds.Inset(anchor_insets_);
return anchor_bounds;
}
« no previous file with comments | « no previous file | ui/views/bubble/bubble_frame_view.cc » ('j') | ui/views/bubble/bubble_frame_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698