summaryrefslogtreecommitdiffstats
path: root/views/view.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-26 01:47:36 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-26 01:47:36 +0000
commit79ea54a64c38656426bea2b9199d51911b27cf2a (patch)
treeae09c3ed69981e4b3739f81d7187e3d2810bb451 /views/view.cc
parentd1a5e6c399b1176bb3295402b617b2517d9558cb (diff)
downloadchromium_src-79ea54a64c38656426bea2b9199d51911b27cf2a.zip
chromium_src-79ea54a64c38656426bea2b9199d51911b27cf2a.tar.gz
chromium_src-79ea54a64c38656426bea2b9199d51911b27cf2a.tar.bz2
ui/gfx: Convert Canvas::ClipRectInt() to use gfx::Rect.
BUG=100898 R=pkasting@chromium.org Review URL: http://codereview.chromium.org/8383028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107276 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.cc')
-rw-r--r--views/view.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/view.cc b/views/view.cc
index 2d4a60d..1464067 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -677,9 +677,9 @@ void View::Paint(gfx::Canvas* canvas) {
// Note that the X (or left) position we pass to ClipRectInt takes into
// consideration whether or not the view uses a right-to-left layout so that
// we paint our view in its mirrored position if need be.
- if (!canvas->ClipRectInt(GetMirroredX(), y(),
- width() - static_cast<int>(clip_x_),
- height() - static_cast<int>(clip_y_))) {
+ if (!canvas->ClipRectInt(gfx::Rect(GetMirroredX(), y(),
+ width() - static_cast<int>(clip_x_),
+ height() - static_cast<int>(clip_y_)))) {
return;
}
// Non-empty clip, translate the graphics such that 0,0 corresponds to