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

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: 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/platform/network/HTTPParsers.cpp ('k') | Source/platform/text/TextBreakIterator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/text/StringTruncator.cpp
diff --git a/Source/platform/text/StringTruncator.cpp b/Source/platform/text/StringTruncator.cpp
index 4d9dac2c6b58995faa6cc09600dc9c1582faf1be..d5ed4ff1edecad89551fb2f382e206cb6633aa36 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] = horizontalEllipsisCharacter;
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] = horizontalEllipsisCharacter;
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, &horizontalEllipsisCharacter, 1);
UChar stringBuffer[STRING_BUFFER_SIZE];
unsigned truncatedLength;
« no previous file with comments | « Source/platform/network/HTTPParsers.cpp ('k') | Source/platform/text/TextBreakIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698