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

Unified Diff: ui/aura_shell/examples/widgets.cc

Issue 8405002: ui/gfx: Convert Canvas::FillRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: save some vertical space, interactive_ui_tests are fixed by Peter's fix Created 9 years, 2 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/aura_shell/examples/toplevel_window.cc ('k') | ui/aura_shell/examples/window_type_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/examples/widgets.cc
diff --git a/ui/aura_shell/examples/widgets.cc b/ui/aura_shell/examples/widgets.cc
index faaf4a3974f850ee9d78a698dc0d9d70fcfbf787..3aef092fd36ce7c190fc6ace0e3265d92963f3ab 100644
--- a/ui/aura_shell/examples/widgets.cc
+++ b/ui/aura_shell/examples/widgets.cc
@@ -93,7 +93,7 @@ WidgetsWindow::~WidgetsWindow() {
}
void WidgetsWindow::OnPaint(gfx::Canvas* canvas) {
- canvas->FillRectInt(SK_ColorWHITE, 0, 0, width(), height());
+ canvas->FillRect(SK_ColorWHITE, GetLocalBounds());
}
void WidgetsWindow::Layout() {
« no previous file with comments | « ui/aura_shell/examples/toplevel_window.cc ('k') | ui/aura_shell/examples/window_type_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698