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

Unified Diff: third_party/WebKit/Source/core/dom/Document.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/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index d303cfccd4c229df7d7afba8c0aebc6ac52d3e0c..36d6b6656c5ea5fc1a12cce7202bc3338bc9d923 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -4380,25 +4380,25 @@ bool Document::parseQualifiedName(const AtomicString& qualifiedName, AtomicStrin
return true;
StringBuilder message;
- message.appendLiteral("The qualified name provided ('");
+ message.append("The qualified name provided ('");
message.append(qualifiedName);
- message.appendLiteral("') ");
+ message.append("') ");
if (returnValue.status == QNMultipleColons) {
- message.appendLiteral("contains multiple colons.");
+ message.append("contains multiple colons.");
} else if (returnValue.status == QNInvalidStartChar) {
- message.appendLiteral("contains the invalid name-start character '");
+ message.append("contains the invalid name-start character '");
message.append(returnValue.character);
- message.appendLiteral("'.");
+ message.append("'.");
} else if (returnValue.status == QNInvalidChar) {
- message.appendLiteral("contains the invalid character '");
+ message.append("contains the invalid character '");
message.append(returnValue.character);
- message.appendLiteral("'.");
+ message.append("'.");
} else if (returnValue.status == QNEmptyPrefix) {
- message.appendLiteral("has an empty namespace prefix.");
+ message.append("has an empty namespace prefix.");
} else {
DCHECK_EQ(returnValue.status, QNEmptyLocalName);
- message.appendLiteral("has an empty local name.");
+ message.append("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