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

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: Comment fixes 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
Index: Source/core/layout/LayoutTreeAsText.cpp
diff --git a/Source/core/layout/LayoutTreeAsText.cpp b/Source/core/layout/LayoutTreeAsText.cpp
index 9e846c6dd946467c38b5402b0297f26d2cca2c16..9eb57d534b078b31eb17d30169c38c0154f41c0b 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:

Powered by Google App Engine
This is Rietveld 408576698