diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-01 21:44:40 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-01 21:44:40 +0000 |
commit | b8bdc427dc7802592bb2fea2b042f1db9667cd61 (patch) | |
tree | 9d1337b4b30ad85a14dd9307cedd0ce438c33f41 /ui/gfx/render_text.cc | |
parent | 07407b6976668863b6ebff63674bfc90da89967f (diff) | |
download | chromium_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/gfx/render_text.cc')
-rw-r--r-- | ui/gfx/render_text.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc index 416e96d..5b9b8c4 100644 --- a/ui/gfx/render_text.cc +++ b/ui/gfx/render_text.cc @@ -843,7 +843,7 @@ void RenderText::DrawSelection(Canvas* canvas) { NativeTheme::kColorId_TextfieldSelectionBackgroundUnfocused; SkColor color = NativeTheme::instance()->GetSystemColor(color_id); for (std::vector<Rect>::const_iterator i = sel.begin(); i < sel.end(); ++i) - canvas->FillRect(color, *i); + canvas->FillRect(*i, color); } void RenderText::DrawCursor(Canvas* canvas) { @@ -852,7 +852,7 @@ void RenderText::DrawCursor(Canvas* canvas) { if (cursor_enabled() && cursor_visible() && focused()) { const Rect& bounds = GetUpdatedCursorBounds(); if (bounds.width() != 0) - canvas->FillRect(kCursorColor, bounds); + canvas->FillRect(bounds, kCursorColor); else canvas->DrawRect(bounds, kCursorColor); } |