| Index: chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc
|
| diff --git a/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc b/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc
|
| index c13f68fa9314d7f4587f816e60faa938a108dc8e..d1e3dbb3f0d10c499a2335dc07f8777c6af19323 100644
|
| --- a/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc
|
| +++ b/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc
|
| @@ -173,14 +173,12 @@ class AutocompletePopupContentsView::InstantOptInView
|
| }
|
|
|
| virtual void OnPaint(gfx::Canvas* canvas) {
|
| + gfx::Rect paint_rect(GetLocalBounds());
|
| + paint_rect.Inset(kOptInBackgroundHInset, kOptInBackgroundVInset);
|
| canvas->Save();
|
| - canvas->Translate(gfx::Point(kOptInBackgroundHInset,
|
| - kOptInBackgroundVInset));
|
| - bg_painter_->Paint(width() - kOptInBackgroundHInset * 2,
|
| - height() - kOptInBackgroundVInset * 2, canvas);
|
| - canvas->DrawRectInt(ResourceBundle::toolbar_separator_color, 0, 0,
|
| - width() - kOptInBackgroundHInset * 2,
|
| - height() - kOptInBackgroundVInset * 2);
|
| + canvas->Translate(paint_rect.origin());
|
| + bg_painter_->Paint(paint_rect.width(), paint_rect.height(), canvas);
|
| + canvas->DrawRect(paint_rect, ResourceBundle::toolbar_separator_color);
|
| canvas->Restore();
|
| }
|
|
|
|
|