summaryrefslogtreecommitdiffstats
path: root/ui/gfx/render_text_linux.cc
diff options
context:
space:
mode:
authorrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-23 06:41:09 +0000
committerrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-23 06:41:09 +0000
commit1219d90f11ee6196c9b9b94f140c86437dad8d88 (patch)
tree61b28fa48c50ef661dc369b785021506a0cf58a1 /ui/gfx/render_text_linux.cc
parentce528ee99aadb239b6cb44a72269e07bdc9fc2d0 (diff)
downloadchromium_src-1219d90f11ee6196c9b9b94f140c86437dad8d88.zip
chromium_src-1219d90f11ee6196c9b9b94f140c86437dad8d88.tar.gz
chromium_src-1219d90f11ee6196c9b9b94f140c86437dad8d88.tar.bz2
Revert 111288 - Possibly broke media_unittests on Mac
ui/gfx: Convert Canvas::DrawRectInt() to use gfx::Rect. BUG=100898 R=pkasting@chromium.org Review URL: http://codereview.chromium.org/8476019 TBR=tfarina@chromium.org Review URL: http://codereview.chromium.org/8681001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111323 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/render_text_linux.cc')
-rw-r--r--ui/gfx/render_text_linux.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/gfx/render_text_linux.cc b/ui/gfx/render_text_linux.cc
index 85f8ea1..ab6e725 100644
--- a/ui/gfx/render_text_linux.cc
+++ b/ui/gfx/render_text_linux.cc
@@ -89,8 +89,13 @@ void RenderTextLinux::Draw(Canvas* canvas) {
cairo_restore(cr);
// Paint cursor.
+ bounds = GetUpdatedCursorBounds();
if (cursor_visible() && focused())
- canvas->DrawRect(GetUpdatedCursorBounds(), kCursorColor);
+ canvas->DrawRectInt(kCursorColor,
+ bounds.x(),
+ bounds.y(),
+ bounds.width(),
+ bounds.height());
}
SelectionModel RenderTextLinux::FindCursorPosition(const Point& point) {