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

Unified Diff: ui/gfx/render_text_mac.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_mac.h ('k') | ui/gfx/render_text_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text_mac.cc
diff --git a/ui/gfx/render_text_mac.cc b/ui/gfx/render_text_mac.cc
index 203bd356a311ba60a3d6eb8f60c1ae4768025b99..42b0a1f55876d774bfff4c19e550539b704d9e5a 100644
--- a/ui/gfx/render_text_mac.cc
+++ b/ui/gfx/render_text_mac.cc
@@ -117,6 +117,7 @@ void RenderTextMac::OnLayoutTextAttributeChanged(bool text_changed) {
if (elide_behavior() != NO_ELIDE &&
elide_behavior() != FADE_TAIL &&
!layout_text().empty()) {
+ DLOG(INFO) << "UPDATE DISP: " << GetContentWidth();
UpdateDisplayText(GetContentWidth());
} else {
UpdateDisplayText(0);
@@ -135,6 +136,8 @@ void RenderTextMac::OnDisplayTextAttributeChanged() {
void RenderTextMac::EnsureLayout() {
if (line_.get())
return;
+
+ DLOG(INFO) << "EnsureLayout based on: " << GetDisplayText() << " elided=" << text_elided();
runs_.clear();
runs_valid_ = false;
« no previous file with comments | « ui/gfx/render_text_mac.h ('k') | ui/gfx/render_text_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698