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

Unified Diff: ui/views/window/dialog_client_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
« no previous file with comments | « ui/views/touchui/touch_selection_controller_impl.cc ('k') | ui/views/window/frame_background.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_client_view.cc
diff --git a/ui/views/window/dialog_client_view.cc b/ui/views/window/dialog_client_view.cc
index 0dd5ed231c8a83cb471b47d83f8418f778014cd9..58ebcbabbef2ffe5da7ca1fcc1b9258081b62bb8 100644
--- a/ui/views/window/dialog_client_view.cc
+++ b/ui/views/window/dialog_client_view.cc
@@ -314,12 +314,12 @@ void DialogClientView::OnPaint(gfx::Canvas* canvas) {
if (!GTK_IS_WINDOW(widget))
return;
SkColor bg_color = gfx::GdkColorToSkColor(
- gtk_widget_get_style(widget)->bg[GTK_STATE_NORMAL]);
+ gtk_widget_get_style(widget)->bg[GTK_STATE_NORMAL]);
#else
SkColor bg_color = gfx::NativeTheme::instance()->GetSystemColor(
- gfx::NativeTheme::kColorId_DialogBackground);
+ gfx::NativeTheme::kColorId_DialogBackground);
#endif
- canvas->FillRect(bg_color, GetLocalBounds());
+ canvas->FillRect(GetLocalBounds(), bg_color);
}
void DialogClientView::PaintChildren(gfx::Canvas* canvas) {
« no previous file with comments | « ui/views/touchui/touch_selection_controller_impl.cc ('k') | ui/views/window/frame_background.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698