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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTreeAsText.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/layout/LayoutTreeAsText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
index f874b06b1f00bd86b40c2e3412273325ba59eea7..2ad494a75c4f8ce34910e49d5d5ad477a4675bf7 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
@@ -721,11 +721,11 @@ String nodePositionAsStringForTesting(Node* node)
for (Node* n = node; n; n = parent) {
parent = n->parentOrShadowHostNode();
if (n != node)
- result.appendLiteral(" of ");
+ result.append(" of ");
if (parent) {
if (body && n == body) {
// We don't care what offset body may be in the document.
- result.appendLiteral("body");
+ result.append("body");
break;
}
if (n->isShadowRoot()) {
@@ -733,14 +733,14 @@ String nodePositionAsStringForTesting(Node* node)
result.append(getTagName(n));
result.append('}');
} else {
- result.appendLiteral("child ");
+ result.append("child ");
result.appendNumber(n->nodeIndex());
- result.appendLiteral(" {");
+ result.append(" {");
result.append(getTagName(n));
result.append('}');
}
} else {
- result.appendLiteral("document");
+ result.append("document");
}
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTheme.cpp ('k') | third_party/WebKit/Source/core/page/EventSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698