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

Unified Diff: ui/gfx/render_text.cc

Issue 965393003: alternative tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20150303-RenderText-Goo
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.h ('k') | ui/gfx/render_text_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text.cc
diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc
index e395a6e006de38097ea3fe041de046c4c75ed810..9ef3724f336dda3fd18271a6a3903dc6de6a35b8 100644
--- a/ui/gfx/render_text.cc
+++ b/ui/gfx/render_text.cc
@@ -971,6 +971,7 @@ void RenderText::UpdateDisplayText(float text_width) {
elide_behavior() == FADE_TAIL ||
text_width < display_rect_.width() ||
layout_text_.empty()) {
+ DLOG(INFO) << "elided being set FALSE!";
text_elided_ = false;
display_text_.clear();
return;
@@ -983,7 +984,9 @@ void RenderText::UpdateDisplayText(float text_width) {
static_cast<float>(display_rect_.width()),
elide_behavior_));
+
text_elided_ = display_text_ != layout_text_;
+ DLOG(INFO) << "Elided: " << text_elided_ << " w=" << text_width << ", " << display_rect_.width() << " , " << layout_text_ << ", " << display_text_;
if (!text_elided_)
display_text_.clear();
}
« no previous file with comments | « ui/gfx/render_text.h ('k') | ui/gfx/render_text_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698