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

Unified Diff: ui/views/controls/label.cc

Issue 960203004: tracing for RenderTextMac::GetDisplayText() eliding goo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20150129-MacViews-Bringup5-RTHB-in-Label
Patch Set: fix upstream 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/label.cc
diff --git a/ui/views/controls/label.cc b/ui/views/controls/label.cc
index 3792a49d1d2d9d1d57dbd79032a3b1e20a5a793a..eb752dbbfa9205c50f9f90daf2ae07e26ee82ce6 100644
--- a/ui/views/controls/label.cc
+++ b/ui/views/controls/label.cc
@@ -445,9 +445,10 @@ void Label::MaybeBuildRenderTextLines() {
(render_text_->MultilineSupported() && !allow_character_break_)) {
scoped_ptr<gfx::RenderText> render_text =
CreateRenderText(text(), alignment, directionality, elide_behavior);
- render_text->SetDisplayRect(rect);
render_text->SetMultiline(multi_line());
+ render_text->SetDisplayRect(rect);
lines_.push_back(render_text.release());
+ // lines_.back()->SetText(lines_[0]->GetDisplayText());
} else {
std::vector<base::string16> lines = GetLinesForWidth(rect.width());
if (lines.size() > 1)
« no previous file with comments | « ui/gfx/render_text_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698