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

Unified Diff: third_party/WebKit/Source/core/editing/serializers/HTMLInterchange.cpp

Issue 2017053003: Remove StringBuilder::appendLiteral. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase. Created 4 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: third_party/WebKit/Source/core/editing/serializers/HTMLInterchange.cpp
diff --git a/third_party/WebKit/Source/core/editing/serializers/HTMLInterchange.cpp b/third_party/WebKit/Source/core/editing/serializers/HTMLInterchange.cpp
index 34d9a48581fa2585cc68908585cbcd07fb533326..9cddb8886d8c240785c32eee34c6c3db916a7afd 100644
--- a/third_party/WebKit/Source/core/editing/serializers/HTMLInterchange.cpp
+++ b/third_party/WebKit/Source/core/editing/serializers/HTMLInterchange.cpp
@@ -60,28 +60,28 @@ String convertHTMLTextToInterchangeFormat(const String& in, const Text& node)
unsigned add = count % 3;
switch (add) {
case 0:
- s.appendLiteral(convertedSpaceString);
+ s.append(convertedSpaceString);
s.append(' ');
- s.appendLiteral(convertedSpaceString);
+ s.append(convertedSpaceString);
add = 3;
break;
case 1:
if (i == 0 || i + 1 == in.length()) // at start or end of string
- s.appendLiteral(convertedSpaceString);
+ s.append(convertedSpaceString);
else
s.append(' ');
break;
case 2:
if (i == 0) {
// at start of string
- s.appendLiteral(convertedSpaceString);
+ s.append(convertedSpaceString);
s.append(' ');
} else if (i + 2 == in.length()) {
// at end of string
- s.appendLiteral(convertedSpaceString);
- s.appendLiteral(convertedSpaceString);
+ s.append(convertedSpaceString);
+ s.append(convertedSpaceString);
} else {
- s.appendLiteral(convertedSpaceString);
+ s.append(convertedSpaceString);
s.append(' ');
}
break;

Powered by Google App Engine
This is Rietveld 408576698