Index: ui/gfx/render_text_win.cc |
diff --git a/ui/gfx/render_text_win.cc b/ui/gfx/render_text_win.cc |
index b3d3954ca6c3043fc408f418ec213d7371fdb136..eac1846ef5bf4ccce5287825965c747b56c1376c 100644 |
--- a/ui/gfx/render_text_win.cc |
+++ b/ui/gfx/render_text_win.cc |
@@ -652,10 +652,8 @@ void RenderTextWin::DrawVisualText(Canvas* canvas) { |
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()) { |
- Rect r(GetUpdatedCursorBounds()); |
- canvas->DrawRectInt(kCursorColor, r.x(), r.y(), r.width(), r.height()); |
- } |
+ if (cursor_visible() && focused()) |
+ canvas->DrawRect(GetUpdatedCursorBounds(), kCursorColor); |
} |
RenderText* RenderText::CreateRenderText() { |