Index: ui/gfx/render_text_win.cc |
=================================================================== |
--- ui/gfx/render_text_win.cc (revision 111322) |
+++ ui/gfx/render_text_win.cc (working copy) |
@@ -730,8 +730,10 @@ |
void RenderTextWin::DrawCursor(Canvas* canvas) { |
// Paint cursor. Replace cursor is drawn as rectangle for now. |
// TODO(msw): Draw a better cursor with a better indication of association. |
- if (cursor_visible() && focused()) |
- canvas->DrawRect(GetUpdatedCursorBounds(), kCursorColor); |
+ if (cursor_visible() && focused()) { |
+ Rect r(GetUpdatedCursorBounds()); |
+ canvas->DrawRectInt(kCursorColor, r.x(), r.y(), r.width(), r.height()); |
+ } |
} |
RenderText* RenderText::CreateRenderText() { |