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

Unified Diff: ui/gfx/render_text.cc

Issue 2660593002: Paint text cursor in LAYER_SOLID_COLOR (Closed)
Patch Set: fix typo Created 3 years, 11 months 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.cc
diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc
index 3b36ea0b3fea9d6ad80cce7cdc52272976169f97..a47625e5414ba60864f09fec0ac8d359a46f1dc6 100644
--- a/ui/gfx/render_text.cc
+++ b/ui/gfx/render_text.cc
@@ -860,9 +860,6 @@ void RenderText::Draw(Canvas* canvas) {
if (!text().empty() && focused())
DrawSelection(canvas);
- if (cursor_enabled() && cursor_visible() && focused())
- DrawCursor(canvas, selection_model_);
-
if (!text().empty()) {
internal::SkiaTextRenderer renderer(canvas);
if (halo_effect())
@@ -1075,7 +1072,6 @@ RenderText::RenderText()
directionality_mode_(DIRECTIONALITY_FROM_TEXT),
text_direction_(base::i18n::UNKNOWN_DIRECTION),
cursor_enabled_(true),
- cursor_visible_(false),
cursor_color_(kDefaultColor),
selection_color_(kDefaultColor),
selection_background_focused_color_(kDefaultSelectionBackgroundColor),

Powered by Google App Engine
This is Rietveld 408576698