Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2173)

Unified Diff: ui/gfx/render_text_win.cc

Issue 8476019: ui/gfx: Convert Canvas::DrawRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address Peter's review Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {
« ui/gfx/canvas_skia.h ('K') | « ui/gfx/render_text_linux.cc ('k') | ui/gfx/skia_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698