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

Unified Diff: third_party/WebKit/Source/core/dom/Document.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/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 042bbf9e78441ac4139c64b54e81d497d4e9f3ab..02714142c1fccc3665c949405425532570a943a3 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -4372,25 +4372,25 @@
return true;
StringBuilder message;
- message.append("The qualified name provided ('");
+ message.appendLiteral("The qualified name provided ('");
message.append(qualifiedName);
- message.append("') ");
+ message.appendLiteral("') ");
if (returnValue.status == QNMultipleColons) {
- message.append("contains multiple colons.");
+ message.appendLiteral("contains multiple colons.");
} else if (returnValue.status == QNInvalidStartChar) {
- message.append("contains the invalid name-start character '");
+ message.appendLiteral("contains the invalid name-start character '");
message.append(returnValue.character);
- message.append("'.");
+ message.appendLiteral("'.");
} else if (returnValue.status == QNInvalidChar) {
- message.append("contains the invalid character '");
+ message.appendLiteral("contains the invalid character '");
message.append(returnValue.character);
- message.append("'.");
+ message.appendLiteral("'.");
} else if (returnValue.status == QNEmptyPrefix) {
- message.append("has an empty namespace prefix.");
+ message.appendLiteral("has an empty namespace prefix.");
} else {
DCHECK_EQ(returnValue.status, QNEmptyLocalName);
- message.append("has an empty local name.");
+ message.appendLiteral("has an empty local name.");
}
if (returnValue.status == QNInvalidStartChar || returnValue.status == QNInvalidChar)
« no previous file with comments | « third_party/WebKit/Source/core/dom/DatasetDOMStringMap.cpp ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698