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

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