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

Unified Diff: Source/core/css/CSSKeyframesRule.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/CSSImportRule.cpp ('k') | Source/core/css/CSSMediaRule.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSKeyframesRule.cpp
diff --git a/Source/core/css/CSSKeyframesRule.cpp b/Source/core/css/CSSKeyframesRule.cpp
index 50d0ea5933d6f278f12a72bab8a4eec10e14cc57..8700d81922bafd2a0a6da16d6988c57f56c7fbfd 100644
--- a/Source/core/css/CSSKeyframesRule.cpp
+++ b/Source/core/css/CSSKeyframesRule.cpp
@@ -163,19 +163,19 @@ String CSSKeyframesRule::cssText() const
{
StringBuilder result;
if (isVendorPrefixed())
- result.append("@-webkit-keyframes ");
+ result.appendLiteral("@-webkit-keyframes ");
else
- result.append("@keyframes ");
+ result.appendLiteral("@keyframes ");
result.append(name());
- result.append(" { \n");
+ result.appendLiteral(" { \n");
unsigned size = length();
for (unsigned i = 0; i < size; ++i) {
- result.append(" ");
+ result.appendLiteral(" ");
result.append(m_keyframesRule->keyframes()[i]->cssText());
- result.append("\n");
+ result.append('\n');
}
- result.append("}");
+ result.append('}');
return result.toString();
}
« no previous file with comments | « Source/core/css/CSSImportRule.cpp ('k') | Source/core/css/CSSMediaRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698