diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-17 20:34:06 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-17 20:34:06 +0000 |
commit | 4d0c0f0fdb022a79d272c45987259a006aa0dd81 (patch) | |
tree | 475bc70711901f426e627422205f44bd480bd557 /chrome | |
parent | bce5b7b0d6a9bf9c7fde6d3f13b4f57dbdb9bba9 (diff) | |
download | chromium_src-4d0c0f0fdb022a79d272c45987259a006aa0dd81.zip chromium_src-4d0c0f0fdb022a79d272c45987259a006aa0dd81.tar.gz chromium_src-4d0c0f0fdb022a79d272c45987259a006aa0dd81.tar.bz2 |
more bustage fixes
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3557 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/views/view_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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); } } |