| 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..22d627795684abc800c7e63e32213b0297f4f315 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(kCursorColor, GetUpdatedCursorBounds());
|
| }
|
|
|
| RenderText* RenderText::CreateRenderText() {
|
|
|