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

Unified Diff: ui/views/border.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
« no previous file with comments | « ui/gfx/render_text.cc ('k') | ui/views/controls/menu/menu_scroll_view_container.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/border.cc
diff --git a/ui/views/border.cc b/ui/views/border.cc
index f7484523c1d07166dc99966f909ef55016afa1ea..dc626768eccd7be54f82e8eda9def9b5c1525c11 100644
--- a/ui/views/border.cc
+++ b/ui/views/border.cc
@@ -36,15 +36,15 @@ SolidBorder::SolidBorder(int thickness, SkColor color)
void SolidBorder::Paint(const View& view, gfx::Canvas* canvas) const {
// Top border.
- canvas->FillRect(color_, gfx::Rect(0, 0, view.width(), insets_.top()));
+ canvas->FillRect(gfx::Rect(0, 0, view.width(), insets_.top()), color_);
// Left border.
- canvas->FillRect(color_, gfx::Rect(0, 0, insets_.left(), view.height()));
+ canvas->FillRect(gfx::Rect(0, 0, insets_.left(), view.height()), color_);
// Bottom border.
- canvas->FillRect(color_, gfx::Rect(0, view.height() - insets_.bottom(),
- view.width(), insets_.bottom()));
+ canvas->FillRect(gfx::Rect(0, view.height() - insets_.bottom(), view.width(),
+ insets_.bottom()), color_);
// Right border.
- canvas->FillRect(color_, gfx::Rect(view.width() - insets_.right(), 0,
- insets_.right(), view.height()));
+ canvas->FillRect(gfx::Rect(view.width() - insets_.right(), 0, insets_.right(),
+ view.height()), color_);
}
void SolidBorder::GetInsets(gfx::Insets* insets) const {
« no previous file with comments | « ui/gfx/render_text.cc ('k') | ui/views/controls/menu/menu_scroll_view_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698