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

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

Issue 9021046: Pass const gfx::Rect& as the first parameter to FillRect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: one more fix Created 8 years, 11 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
Index: chrome/browser/ui/views/default_search_view.cc
diff --git a/chrome/browser/ui/views/default_search_view.cc b/chrome/browser/ui/views/default_search_view.cc
index 5245317ac64a06e9a963754d8958745db67cc738..8ec0225f8888aa634c225225439c437649a655aa 100644
--- a/chrome/browser/ui/views/default_search_view.cc
+++ b/chrome/browser/ui/views/default_search_view.cc
@@ -135,13 +135,13 @@ DefaultSearchView::~DefaultSearchView() {
void DefaultSearchView::OnPaint(gfx::Canvas* canvas) {
// Fill in behind the background image with the standard gray toolbar color.
- canvas->FillRect(GetThemeProvider()->GetColor(ThemeService::COLOR_TOOLBAR),
- gfx::Rect(0, 0, width(), background_image_->height()));
+ canvas->FillRect(gfx::Rect(0, 0, width(), background_image_->height()),
+ GetThemeProvider()->GetColor(ThemeService::COLOR_TOOLBAR));
// The rest of the dialog background should be white.
DCHECK(height() > background_image_->height());
- canvas->FillRect(SK_ColorWHITE,
- gfx::Rect(0, background_image_->height(), width(),
- height() - background_image_->height()));
+ canvas->FillRect(gfx::Rect(0, background_image_->height(), width(),
+ height() - background_image_->height()),
+ SK_ColorWHITE);
}
void DefaultSearchView::ButtonPressed(views::Button* sender,
« no previous file with comments | « chrome/browser/ui/views/constrained_window_views.cc ('k') | chrome/browser/ui/views/detachable_toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698