summaryrefslogtreecommitdiffstats
path: root/ui/gfx/render_text.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-23 02:09:48 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-23 02:09:48 +0000
commit212e688d11b29489d00319a52eea8e28ba26c599 (patch)
treedbdbd1e297e0d9cae7c6c697eb544ab4b341b12e /ui/gfx/render_text.cc
parent69c88e180549a1156037f22bd46f4937d3c1d3d7 (diff)
downloadchromium_src-212e688d11b29489d00319a52eea8e28ba26c599.zip
chromium_src-212e688d11b29489d00319a52eea8e28ba26c599.tar.gz
chromium_src-212e688d11b29489d00319a52eea8e28ba26c599.tar.bz2
ui/gfx: Convert Canvas::DrawRectInt() to use gfx::Rect.
BUG=100898 R=pkasting@chromium.org Review URL: http://codereview.chromium.org/8476019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111288 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/render_text.cc')
-rw-r--r--ui/gfx/render_text.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc
index c3d9b6f..73ff1c1 100644
--- a/ui/gfx/render_text.cc
+++ b/ui/gfx/render_text.cc
@@ -391,10 +391,8 @@ void RenderText::Draw(Canvas* canvas) {
}
// Paint cursor. Replace cursor is drawn as rectangle for now.
- Rect cursor(GetUpdatedCursorBounds());
if (cursor_visible() && focused())
- canvas->DrawRectInt(kCursorColor, cursor.x(), cursor.y(),
- cursor.width(), cursor.height());
+ canvas->DrawRect(GetUpdatedCursorBounds(), kCursorColor);
}
SelectionModel RenderText::FindCursorPosition(const Point& point) {