From 4d0c0f0fdb022a79d272c45987259a006aa0dd81 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Fri, 17 Oct 2008 20:34:06 +0000 Subject: more bustage fixes git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3557 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/views/view_unittest.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome/views') diff --git a/chrome/views/view_unittest.cc b/chrome/views/view_unittest.cc index 6d95d35..ca6d026 100644 --- a/chrome/views/view_unittest.cc +++ b/chrome/views/view_unittest.cc @@ -34,10 +34,10 @@ void PaintRootView(views::RootView* root, bool empty_paint) { } else { // User isn't logged in, so that PaintNow will generate an empty rectangle. // Invoke paint directly. - CRect paint_rect = root->GetScheduledPaintRect(); - ChromeCanvas canvas(paint_rect.Width(), paint_rect.Height(), true); - canvas.TranslateInt(-paint_rect.left, -paint_rect.top); - canvas.ClipRectInt(0, 0, paint_rect.Width(), paint_rect.Height()); + gfx::Rect paint_rect = root->GetScheduledPaintRect(); + ChromeCanvas canvas(paint_rect.width(), paint_rect.height(), true); + canvas.TranslateInt(-paint_rect.x(), -paint_rect.y()); + canvas.ClipRectInt(0, 0, paint_rect.width(), paint_rect.height()); root->ProcessPaint(&canvas); } } -- cgit v1.1