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

Unified Diff: ui/gfx/text_elider.cc

Issue 916203002: Reduce the number of text reshaping in RenderText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « ui/gfx/render_text_unittest.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/text_elider.cc
diff --git a/ui/gfx/text_elider.cc b/ui/gfx/text_elider.cc
index 6edd2ab4fdb5cebbe6ec8739632162bd917b09ac..afcdb1d5c436aa648d86ea1838f9aaf0401d0676 100644
--- a/ui/gfx/text_elider.cc
+++ b/ui/gfx/text_elider.cc
@@ -221,7 +221,7 @@ base::string16 ElideText(const base::string16& text,
gfx::ToEnclosingRect(gfx::RectF(gfx::SizeF(available_pixel_width, 1))));
render_text->SetElideBehavior(behavior);
render_text->SetText(text);
- return render_text->layout_text();
+ return render_text->GetDisplayText();
#else
DCHECK_NE(behavior, FADE_TAIL);
if (text.empty() || behavior == FADE_TAIL || behavior == NO_ELIDE ||
« no previous file with comments | « ui/gfx/render_text_unittest.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698