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

Unified Diff: Source/core/css/CSSImportRule.cpp

Issue 482753002: Use StringBuilder::appendLiteral() / StringBuilder::append(char) when possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/core/css/CSSImageSetValue.cpp ('k') | Source/core/css/CSSKeyframesRule.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSImportRule.cpp
diff --git a/Source/core/css/CSSImportRule.cpp b/Source/core/css/CSSImportRule.cpp
index 2848a6176aefb4e24e52bdd38bdf6f19a51c9f60..d9e10b2ef8bb9c143bca1808475011caeb29d4cf 100644
--- a/Source/core/css/CSSImportRule.cpp
+++ b/Source/core/css/CSSImportRule.cpp
@@ -62,9 +62,9 @@ MediaList* CSSImportRule::media() const
String CSSImportRule::cssText() const
{
StringBuilder result;
- result.append("@import url(\"");
+ result.appendLiteral("@import url(\"");
result.append(m_importRule->href());
- result.append("\")");
+ result.appendLiteral("\")");
if (m_importRule->mediaQueries()) {
String mediaText = m_importRule->mediaQueries()->mediaText();
« no previous file with comments | « Source/core/css/CSSImageSetValue.cpp ('k') | Source/core/css/CSSKeyframesRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698