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

Unified Diff: Source/core/css/CSSPropertySourceData.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/CSSMediaRule.cpp ('k') | Source/core/css/CSSSelectorList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSPropertySourceData.cpp
diff --git a/Source/core/css/CSSPropertySourceData.cpp b/Source/core/css/CSSPropertySourceData.cpp
index d1f1fbdad996d06c0ce5cdc1f2f61277e3805c34..9d832fd09bf31fc610316bb95d7cd0733b739aa6 100644
--- a/Source/core/css/CSSPropertySourceData.cpp
+++ b/Source/core/css/CSSPropertySourceData.cpp
@@ -93,7 +93,7 @@ String CSSPropertySourceData::toString() const
StringBuilder result;
if (disabled)
- result.append("/* ");
+ result.appendLiteral("/* ");
result.append(name);
result.appendLiteral(": ");
result.append(value);
@@ -101,7 +101,7 @@ String CSSPropertySourceData::toString() const
result.appendLiteral(" !important");
result.append(';');
if (disabled)
- result.append(" */");
+ result.appendLiteral(" */");
return result.toString();
}
« no previous file with comments | « Source/core/css/CSSMediaRule.cpp ('k') | Source/core/css/CSSSelectorList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698