summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/views/copy_background.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos/views/copy_background.cc')
-rw-r--r--chrome/browser/chromeos/views/copy_background.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/chromeos/views/copy_background.cc b/chrome/browser/chromeos/views/copy_background.cc
index 64e329f..723103e 100644
--- a/chrome/browser/chromeos/views/copy_background.cc
+++ b/chrome/browser/chromeos/views/copy_background.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -21,12 +21,10 @@ void CopyBackground::Paint(gfx::Canvas* canvas, views::View* view) const {
const Background* background = background_owner_->background();
DCHECK(background);
gfx::Point origin(0, 0);
- views::View::ConvertPointToView(view,
- background_owner_,
- &origin);
+ views::View::ConvertPointToView(view, background_owner_, &origin);
canvas->Save();
// Move the origin and paint as if it's paint onto the owner.
- canvas->TranslateInt(-origin.x(), -origin.y());
+ canvas->Translate(gfx::Point().Subtract(origin));
background->Paint(canvas, background_owner_);
canvas->Restore();
}