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

Unified Diff: chrome/browser/ui/views/page_info_bubble_view.cc

Issue 8870003: Merge BorderContentsView into BubbleFrameView; simplify. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove allow_bubble_offscreen, simplify and update tests. Created 9 years 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/page_info_bubble_view.cc
diff --git a/chrome/browser/ui/views/page_info_bubble_view.cc b/chrome/browser/ui/views/page_info_bubble_view.cc
index 62188f9f64912329ad15cb908d4069d12a88db1b..04d2cd3de2fd6db5528d59a4e3dbc8101bd82800 100644
--- a/chrome/browser/ui/views/page_info_bubble_view.cc
+++ b/chrome/browser/ui/views/page_info_bubble_view.cc
@@ -298,8 +298,7 @@ void PageInfoBubbleView::OnPageInfoModelChanged() {
gfx::Rect PageInfoBubbleView::GetAnchorRect() {
// Compensate for some built-in padding in the icon.
gfx::Rect anchor(BubbleDelegateView::GetAnchorRect());
- if (anchor_view())
- anchor.Offset(0, -5);
+ anchor.Inset(0, anchor_view() ? 5 : 0);
return anchor;
}

Powered by Google App Engine
This is Rietveld 408576698