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

Unified Diff: ui/views/view.cc

Issue 8383028: ui/gfx: Convert Canvas::ClipRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo 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/gfx/render_text.cc ('k') | ui/views/widget/native_widget_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 57e2aba140a474f8bb22100f260d4e1c9b44ca3d..14a797b49b34702486ce730e93e7fd71a4a28f95 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -552,7 +552,7 @@ void View::Paint(gfx::Canvas* canvas) {
return;
ScopedCanvasState canvas_state(canvas);
- if (canvas->ClipRectInt(x(), y(), width(), height())) {
+ if (canvas->ClipRectInt(bounds_)) {
canvas->TranslateInt(x(), y());
// TODO(beng): RTL
ScopedCanvasState canvas_state(canvas);
« no previous file with comments | « ui/gfx/render_text.cc ('k') | ui/views/widget/native_widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698