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

Unified Diff: Source/platform/text/StringTruncator.cpp

Issue 1119663002: Making Unicode character names consistent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code changes to correct Test Expectation 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/platform/text/StringTruncator.cpp
diff --git a/Source/platform/text/StringTruncator.cpp b/Source/platform/text/StringTruncator.cpp
index 4d9dac2c6b58995faa6cc09600dc9c1582faf1be..6db2531390fbd881dca7a8f4842a58e1ea1ea65d 100644
--- a/Source/platform/text/StringTruncator.cpp
+++ b/Source/platform/text/StringTruncator.cpp
@@ -70,7 +70,7 @@ static unsigned centerTruncateToBuffer(const String& string, unsigned length, un
ASSERT(truncatedLength <= length);
string.copyTo(buffer, 0, omitStart);
- buffer[omitStart] = horizontalEllipsis;
+ buffer[omitStart] = characterHorizontalEllipsis;
string.copyTo(&buffer[omitStart + 1], omitEnd, length - omitEnd);
return truncatedLength;
@@ -86,7 +86,7 @@ static unsigned rightTruncateToBuffer(const String& string, unsigned length, uns
unsigned truncatedLength = keepLength + 1;
string.copyTo(buffer, 0, keepLength);
- buffer[keepLength] = horizontalEllipsis;
+ buffer[keepLength] = characterHorizontalEllipsis;
return truncatedLength;
}
@@ -110,7 +110,7 @@ static String truncateString(const String& string, float maxWidth, const Font& f
ASSERT(maxWidth >= 0);
- float currentEllipsisWidth = stringWidth(font, &horizontalEllipsis, 1);
+ float currentEllipsisWidth = stringWidth(font, &characterHorizontalEllipsis, 1);
UChar stringBuffer[STRING_BUFFER_SIZE];
unsigned truncatedLength;

Powered by Google App Engine
This is Rietveld 408576698