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

Unified Diff: ui/gfx/render_text.cc

Issue 2660593002: Paint text cursor in LAYER_SOLID_COLOR (Closed)
Patch Set: address comments Created 3 years, 10 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 41e7cf44cb6d6fc293974d3370eddee68110ac01..bb46e0acafc84ba5f99fbdb54205a1ddb70145cb 100644
--- a/ui/gfx/render_text.cc
+++ b/ui/gfx/render_text.cc
@@ -864,9 +864,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())
@@ -1079,7 +1076,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