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

Unified Diff: third_party/WebKit/Source/core/css/CSSNamespaceRule.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/css/CSSNamespaceRule.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSNamespaceRule.cpp b/third_party/WebKit/Source/core/css/CSSNamespaceRule.cpp
index 8b626625e3bbc3dea43a510804327f7f5a6ced5d..220d7eac182b9c9c8b1f6a49baec05b5948104d0 100644
--- a/third_party/WebKit/Source/core/css/CSSNamespaceRule.cpp
+++ b/third_party/WebKit/Source/core/css/CSSNamespaceRule.cpp
@@ -23,13 +23,13 @@ CSSNamespaceRule::~CSSNamespaceRule()
String CSSNamespaceRule::cssText() const
{
StringBuilder result;
- result.appendLiteral("@namespace ");
+ result.append("@namespace ");
serializeIdentifier(prefix(), result);
if (!prefix().isEmpty())
- result.appendLiteral(" ");
- result.appendLiteral("url(");
+ result.append(" ");
+ result.append("url(");
result.append(serializeString(namespaceURI()));
- result.appendLiteral(");");
+ result.append(");");
return result.toString();
}
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSMediaRule.cpp ('k') | third_party/WebKit/Source/core/css/CSSPageRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698