Index: ui/gfx/render_text_linux.cc |
diff --git a/ui/gfx/render_text_linux.cc b/ui/gfx/render_text_linux.cc |
index ab6e725a11ee78ee92a6c3daf7d97340b157d3d3..85f8ea1da9006e70d8c5f4ff1ca51527edade642 100644 |
--- a/ui/gfx/render_text_linux.cc |
+++ b/ui/gfx/render_text_linux.cc |
@@ -89,13 +89,8 @@ void RenderTextLinux::Draw(Canvas* canvas) { |
cairo_restore(cr); |
// Paint cursor. |
- bounds = GetUpdatedCursorBounds(); |
if (cursor_visible() && focused()) |
- canvas->DrawRectInt(kCursorColor, |
- bounds.x(), |
- bounds.y(), |
- bounds.width(), |
- bounds.height()); |
+ canvas->DrawRect(GetUpdatedCursorBounds(), kCursorColor); |
} |
SelectionModel RenderTextLinux::FindCursorPosition(const Point& point) { |