Index: chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc |
diff --git a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc |
index 7640e96df3ebdc6cf5f6230f2c6fff8d37dd281e..f48eb79e1c889a4a3ba577cc3f27bc83a9bd94ce 100644 |
--- a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc |
+++ b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc |
@@ -46,10 +46,6 @@ void IconLabelBubbleView::SetImage(const SkBitmap& bitmap) { |
image_->SetImage(bitmap); |
} |
-void IconLabelBubbleView::OnPaint(gfx::Canvas* canvas) { |
- background_painter_.Paint(width(), height(), canvas); |
-} |
- |
gfx::Size IconLabelBubbleView::GetPreferredSize() { |
gfx::Size size(GetNonLabelSize()); |
size.Enlarge(label_->GetPreferredSize().width(), 0); |
@@ -73,6 +69,10 @@ gfx::Size IconLabelBubbleView::GetNonLabelSize() { |
return gfx::Size(GetNonLabelWidth(), background_painter_.height()); |
} |
+void IconLabelBubbleView::OnPaint(gfx::Canvas* canvas) { |
+ background_painter_.Paint(width(), height(), canvas); |
+} |
+ |
int IconLabelBubbleView::GetNonLabelWidth() { |
return kBubbleOuterPadding + image_->GetPreferredSize().width() + |
item_padding_ + kBubbleOuterPadding; |