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

Unified Diff: ui/gfx/text_elider.cc

Issue 1565923002: Add updated comment back (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | 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 18c1c269d8c4ad9553b0601646e581f436decd16..4b7a7f9fc99f714138026e8643a0879528af0fc3 100644
--- a/ui/gfx/text_elider.cc
+++ b/ui/gfx/text_elider.cc
@@ -200,6 +200,7 @@ base::string16 ElideText(const base::string16& text,
DCHECK_NE(behavior, FADE_TAIL);
scoped_ptr<RenderText> render_text(RenderText::CreateInstance());
render_text->SetCursorEnabled(false);
+ // TODO(bshe): 5000 is out dated. We should remove it. See crbug.com/551660.
// Do not bother accurately sizing strings over 5000 characters here, for
// performance purposes. This matches the behavior of Canvas::SizeStringFloat.
render_text->set_truncate_length(5000);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698