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

Unified Diff: ui/gfx/render_text_harfbuzz.cc

Issue 2817403002: [Omnibox] Elide omnibox text (Closed)
Patch Set: Move line clearing to OnDisplayTextAttributeChanged 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_harfbuzz.cc
diff --git a/ui/gfx/render_text_harfbuzz.cc b/ui/gfx/render_text_harfbuzz.cc
index 18ee267ef34e619af2afca6b67513a449a577ca1..f883325a90b606cfc93d517ebc58a50c6674ba71 100644
--- a/ui/gfx/render_text_harfbuzz.cc
+++ b/ui/gfx/render_text_harfbuzz.cc
@@ -1180,6 +1180,8 @@ void RenderTextHarfBuzz::OnLayoutTextAttributeChanged(bool text_changed) {
void RenderTextHarfBuzz::OnDisplayTextAttributeChanged() {
update_display_text_ = true;
update_grapheme_iterator_ = true;
+ std::vector<internal::Line> empty_lines;
+ set_lines(&empty_lines);
}
void RenderTextHarfBuzz::EnsureLayout() {

Powered by Google App Engine
This is Rietveld 408576698