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

Unified Diff: third_party/WebKit/Source/core/css/StyleRuleKeyframe.cpp

Issue 2017303002: Revert of Remove StringBuilder::appendLiteral. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/StyleRuleKeyframe.cpp
diff --git a/third_party/WebKit/Source/core/css/StyleRuleKeyframe.cpp b/third_party/WebKit/Source/core/css/StyleRuleKeyframe.cpp
index db237ada9f1cf44247d601d67bd2683a2dedfb5e..d8b970bdeadbd3bc8a7040d5ae9124346628df2a 100644
--- a/third_party/WebKit/Source/core/css/StyleRuleKeyframe.cpp
+++ b/third_party/WebKit/Source/core/css/StyleRuleKeyframe.cpp
@@ -24,7 +24,7 @@
StringBuilder keyText;
for (unsigned i = 0; i < m_keys.size(); ++i) {
if (i)
- keyText.append(", ");
+ keyText.appendLiteral(", ");
keyText.appendNumber(m_keys.at(i) * 100);
keyText.append('%');
}
@@ -60,7 +60,7 @@
{
StringBuilder result;
result.append(keyText());
- result.append(" { ");
+ result.appendLiteral(" { ");
String decls = m_properties->asText();
result.append(decls);
if (!decls.isEmpty())

Powered by Google App Engine
This is Rietveld 408576698