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

Unified Diff: views/desktop/desktop_window_view.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 | « views/desktop/desktop_background.cc ('k') | views/examples/native_theme_button_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/desktop/desktop_window_view.cc
diff --git a/views/desktop/desktop_window_view.cc b/views/desktop/desktop_window_view.cc
index 24f02491daff2f7b9c1a0854b7bb5e695e02d3ad..0c4d5995ae38b503bb39a9eb34b963b826771e84 100644
--- a/views/desktop/desktop_window_view.cc
+++ b/views/desktop/desktop_window_view.cc
@@ -72,7 +72,7 @@ class TestWindowContentView : public WidgetDelegateView {
private:
// Overridden from View:
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {
- canvas->FillRectInt(color_, 0, 0, width(), height());
+ canvas->FillRect(color_, GetLocalBounds());
}
// Overridden from WindowDelegate:
« no previous file with comments | « views/desktop/desktop_background.cc ('k') | views/examples/native_theme_button_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698