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

Unified Diff: ui/gfx/render_text_mac.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.cc ('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 5b7e2faeef3185316398b3ad3562204a338e8c69..b140af873b11f27e2300920a6198fe8e144f4e56 100644
--- a/ui/gfx/render_text_mac.cc
+++ b/ui/gfx/render_text_mac.cc
@@ -15,6 +15,8 @@
#include "base/strings/sys_string_conversions.h"
#include "skia/ext/skia_utils_mac.h"
+#include "base/debug/stack_trace.h"
+
namespace gfx {
RenderTextMac::RenderTextMac()
@@ -33,6 +35,7 @@ bool RenderTextMac::MultilineSupported() const {
}
const base::string16& RenderTextMac::GetDisplayText() {
+
return text_elided() ? display_text() : layout_text();
}
@@ -112,6 +115,7 @@ bool RenderTextMac::IsValidCursorIndex(size_t index) {
}
void RenderTextMac::OnLayoutTextAttributeChanged(bool text_changed) {
+ DLOG(INFO) << "OnLayoutTextAttributeChanged: " << GetDisplayText();
//DCHECK(!multiline()) << "RenderTextMac does not support multi line";
if (text_changed) {
if (elide_behavior() != NO_ELIDE &&
« no previous file with comments | « ui/gfx/render_text.cc ('k') | ui/gfx/render_text_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698