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

Unified Diff: ui/views/controls/table/table_view_views.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/views/controls/separator.cc ('k') | ui/views/controls/tree/tree_view_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/table/table_view_views.cc
diff --git a/ui/views/controls/table/table_view_views.cc b/ui/views/controls/table/table_view_views.cc
index 2788931cf22e983e0579392d5c4dd5812f94503d..187c0d6886720b44012af5b791c3515591714467 100644
--- a/ui/views/controls/table/table_view_views.cc
+++ b/ui/views/controls/table/table_view_views.cc
@@ -242,7 +242,7 @@ void TableView::OnPaint(gfx::Canvas* canvas) {
for (int i = min_row; i < max_row; ++i) {
gfx::Rect row_bounds(GetRowBounds(i));
if (i == selected_row_) {
- canvas->FillRect(kSelectedBackgroundColor, row_bounds);
+ canvas->FillRect(row_bounds, kSelectedBackgroundColor);
if (HasFocus())
canvas->DrawFocusRect(row_bounds);
}
« no previous file with comments | « ui/views/controls/separator.cc ('k') | ui/views/controls/tree/tree_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698