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

Unified Diff: third_party/WebKit/Source/core/editing/VisibleSelection.cpp

Issue 2017303002: Revert of Remove StringBuilder::appendLiteral. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/VisibleSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
index c7aadb753210287c7844257a01a911b3a62aaa26..abfaeda96f861d85892fc11b1bf5c63034a33fb4 100644
--- a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
@@ -917,14 +917,14 @@
String s;
if (isNone()) {
- result.append("<none>");
+ result.appendLiteral("<none>");
} else {
const int FormatBufferSize = 1024;
char s[FormatBufferSize];
- result.append("from ");
+ result.appendLiteral("from ");
start().formatForDebugger(s, FormatBufferSize);
result.append(s);
- result.append(" to ");
+ result.appendLiteral(" to ");
end().formatForDebugger(s, FormatBufferSize);
result.append(s);
}

Powered by Google App Engine
This is Rietveld 408576698