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

Unified Diff: chrome/browser/ui/views/detachable_toolbar_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/detachable_toolbar_view.cc
diff --git a/chrome/browser/ui/views/detachable_toolbar_view.cc b/chrome/browser/ui/views/detachable_toolbar_view.cc
index a195aef717c1a83d08ee479181ce2605bf29ab89..ce263196e797c27981d102eec1989d266a1eea16 100644
--- a/chrome/browser/ui/views/detachable_toolbar_view.cc
+++ b/chrome/browser/ui/views/detachable_toolbar_view.cc
@@ -28,8 +28,8 @@ void DetachableToolbarView::PaintBackgroundAttachedMode(
views::View* view,
const gfx::Point& background_origin) {
ui::ThemeProvider* tp = view->GetThemeProvider();
- SkColor theme_toolbar_color = tp->GetColor(ThemeService::COLOR_TOOLBAR);
- canvas->FillRect(theme_toolbar_color, view->GetLocalBounds());
+ canvas->FillRect(view->GetLocalBounds(),
+ tp->GetColor(ThemeService::COLOR_TOOLBAR));
canvas->TileImageInt(*tp->GetBitmapNamed(IDR_THEME_TOOLBAR),
background_origin.x(), background_origin.y(), 0, 0,
view->width(), view->height());
@@ -56,8 +56,8 @@ void DetachableToolbarView::PaintHorizontalBorder(gfx::Canvas* canvas,
// the view (bar/shelf) is attached or detached.
int thickness = views::NonClientFrameView::kClientEdgeThickness;
int y = view->IsDetached() ? 0 : (view->height() - thickness);
- canvas->FillRect(ResourceBundle::toolbar_separator_color,
- gfx::Rect(0, y, view->width(), thickness));
+ canvas->FillRect(gfx::Rect(0, y, view->width(), thickness),
+ ResourceBundle::toolbar_separator_color);
}
// static
« no previous file with comments | « chrome/browser/ui/views/default_search_view.cc ('k') | chrome/browser/ui/views/download/download_shelf_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698