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

Unified Diff: ui/gfx/render_text.cc

Issue 2817403002: [Omnibox] Elide omnibox text (Closed)
Patch Set: [Omnibox] Elide omnibox text Created 3 years, 8 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 97b6c8fb82f36751df3c94ebca4864cf392b05b7..776b315af1e93fd142fc6ce94b4fa4bdaf55f7a7 100644
--- a/ui/gfx/render_text.cc
+++ b/ui/gfx/render_text.cc
@@ -563,6 +563,7 @@ void RenderText::SetElideBehavior(ElideBehavior elide_behavior) {
// TODO(skanuj) : Add a test for triggering layout change.
if (elide_behavior_ != elide_behavior) {
elide_behavior_ = elide_behavior;
+ lines_.clear();
OnDisplayTextAttributeChanged();
}
}

Powered by Google App Engine
This is Rietveld 408576698