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

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: 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
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 57e2aba140a474f8bb22100f260d4e1c9b44ca3d..7e5a267bf7772265272cf5e2aee2ea50b7c347d9 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(gfx::Rect(origin(), size()))) {
Peter Kasting 2011/10/25 20:24:47 Nit: Isn't this just |bounds_|?
tfarina 2011/10/25 23:52:41 Done.
canvas->TranslateInt(x(), y());
// TODO(beng): RTL
ScopedCanvasState canvas_state(canvas);

Powered by Google App Engine
This is Rietveld 408576698