summaryrefslogtreecommitdiffstats
path: root/ui/views/examples/native_theme_button_example.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-01 21:44:40 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-01 21:44:40 +0000
commitb8bdc427dc7802592bb2fea2b042f1db9667cd61 (patch)
tree9d1337b4b30ad85a14dd9307cedd0ce438c33f41 /ui/views/examples/native_theme_button_example.cc
parent07407b6976668863b6ebff63674bfc90da89967f (diff)
downloadchromium_src-b8bdc427dc7802592bb2fea2b042f1db9667cd61.zip
chromium_src-b8bdc427dc7802592bb2fea2b042f1db9667cd61.tar.gz
chromium_src-b8bdc427dc7802592bb2fea2b042f1db9667cd61.tar.bz2
Pass const gfx::Rect& as the first parameter to FillRect.
BUG=100898 R=pkasting@chromium.org TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/9021046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120109 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/examples/native_theme_button_example.cc')
-rw-r--r--ui/views/examples/native_theme_button_example.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/views/examples/native_theme_button_example.cc b/ui/views/examples/native_theme_button_example.cc
index c37fc3e..7d73815 100644
--- a/ui/views/examples/native_theme_button_example.cc
+++ b/ui/views/examples/native_theme_button_example.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
@@ -193,7 +193,7 @@ gfx::Size ExampleNativeThemeButton::GetPreferredSize() {
void ExampleNativeThemeButton::OnPaintBackground(gfx::Canvas* canvas) {
// Fill the background with a known colour so that we know where the bounds
// of the View are.
- canvas->FillRect(SkColorSetRGB(255, 128, 128), GetLocalBounds());
+ canvas->FillRect(GetLocalBounds(), SkColorSetRGB(255, 128, 128));
CustomButton::OnPaintBackground(canvas);
}