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

Unified Diff: chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc

Issue 8476019: ui/gfx: Convert Canvas::DrawRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/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 0cca0d6f6221e28f37f441d2d86a9b696aa01955..17d6eb3a82d4f6ab020c9edafa301f18cd8cf00f 100644
--- a/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc
+++ b/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc
@@ -178,9 +178,9 @@ class AutocompletePopupContentsView::InstantOptInView
kOptInBackgroundVInset));
bg_painter_->Paint(width() - kOptInBackgroundHInset * 2,
Peter Kasting 2011/11/05 01:10:10 Nit: Shorter: gfx::Rect paint_rect(GetLocalBo
tfarina 2011/11/05 02:23:24 Done.
height() - kOptInBackgroundVInset * 2, canvas);
- canvas->DrawRectInt(ResourceBundle::toolbar_separator_color, 0, 0,
- width() - kOptInBackgroundHInset * 2,
- height() - kOptInBackgroundVInset * 2);
+ canvas->DrawRect(ResourceBundle::toolbar_separator_color,
+ gfx::Rect(0, 0, width() - kOptInBackgroundHInset * 2,
+ height() - kOptInBackgroundVInset * 2));
canvas->Restore();
}

Powered by Google App Engine
This is Rietveld 408576698