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

Unified Diff: third_party/WebKit/Source/core/editing/VisibleSelection.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/VisibleSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
index 99e07c51e3a48a26ff216503b576ea2472e1cb56..fe09d902b1bdeb8379a991aebe5fccc8d896ef80 100644
--- a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
@@ -884,14 +884,14 @@ void VisibleSelectionTemplate<Strategy>::formatForDebugger(char* buffer, unsigne
String s;
if (isNone()) {
- result.appendLiteral("<none>");
+ result.append("<none>");
} else {
const int FormatBufferSize = 1024;
char s[FormatBufferSize];
- result.appendLiteral("from ");
+ result.append("from ");
start().formatForDebugger(s, FormatBufferSize);
result.append(s);
- result.appendLiteral(" to ");
+ result.append(" to ");
end().formatForDebugger(s, FormatBufferSize);
result.append(s);
}

Powered by Google App Engine
This is Rietveld 408576698