summaryrefslogtreecommitdiffstats
path: root/chrome/views/view_unittest.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-17 20:34:06 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-17 20:34:06 +0000
commit4d0c0f0fdb022a79d272c45987259a006aa0dd81 (patch)
tree475bc70711901f426e627422205f44bd480bd557 /chrome/views/view_unittest.cc
parentbce5b7b0d6a9bf9c7fde6d3f13b4f57dbdb9bba9 (diff)
downloadchromium_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/views/view_unittest.cc')
-rw-r--r--chrome/views/view_unittest.cc8
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);
}
}