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

Unified Diff: Source/core/layout/LayoutTreeAsText.cpp

Issue 1119663002: Making Unicode character names consistent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase patch Created 5 years, 7 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 | « Source/core/layout/LayoutText.cpp ('k') | Source/core/layout/line/BreakingContextInlineHeaders.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutTreeAsText.cpp
diff --git a/Source/core/layout/LayoutTreeAsText.cpp b/Source/core/layout/LayoutTreeAsText.cpp
index f5fd814ef2f4131088338d586da99d890400ad2b..b5a2d739b448e67ab5c2627039c72e48e3c7c3ee 100644
--- a/Source/core/layout/LayoutTreeAsText.cpp
+++ b/Source/core/layout/LayoutTreeAsText.cpp
@@ -138,7 +138,7 @@ String quoteAndEscapeNonPrintables(const String& s)
} else if (c == '"') {
result.append('\\');
result.append('"');
- } else if (c == '\n' || c == noBreakSpace) {
+ } else if (c == '\n' || c == noBreakSpaceCharacter) {
result.append(' ');
} else {
if (c >= 0x20 && c < 0x7F) {
@@ -332,13 +332,13 @@ void LayoutTreeAsText::writeLayoutObject(TextStream& ts, const LayoutObject& o,
text = quoteAndEscapeNonPrintables(text);
} else {
switch (text[0]) {
- case bullet:
+ case bulletCharacter:
text = "bullet";
break;
- case blackSquare:
+ case blackSquareCharacter:
text = "black square";
break;
- case whiteBullet:
+ case whiteBulletCharacter:
text = "white bullet";
break;
default:
« no previous file with comments | « Source/core/layout/LayoutText.cpp ('k') | Source/core/layout/line/BreakingContextInlineHeaders.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698