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

Unified Diff: ui/gfx/render_text_linux.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_linux.cc
diff --git a/ui/gfx/render_text_linux.cc b/ui/gfx/render_text_linux.cc
index 92af95e6d97bf8d4c61bf51c2d716b003850575d..31da32ca9047055d02cd3e0fc2d02bd6dbf65b6c 100644
--- a/ui/gfx/render_text_linux.cc
+++ b/ui/gfx/render_text_linux.cc
@@ -114,13 +114,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) {
« ui/gfx/canvas_skia.h ('K') | « ui/gfx/render_text.cc ('k') | ui/gfx/render_text_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698