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

Unified Diff: Source/core/css/CSSStyleRule.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/CSSSelectorList.cpp ('k') | Source/core/css/CSSSupportsRule.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSStyleRule.cpp
diff --git a/Source/core/css/CSSStyleRule.cpp b/Source/core/css/CSSStyleRule.cpp
index 0efb310475663995f628a6f87c4808e1c368e1dd..947a2cbdf3bff2815645e66213d165be9710cfc9 100644
--- a/Source/core/css/CSSStyleRule.cpp
+++ b/Source/core/css/CSSStyleRule.cpp
@@ -70,7 +70,7 @@ String CSSStyleRule::generateSelectorText() const
StringBuilder builder;
for (const CSSSelector* selector = m_styleRule->selectorList().first(); selector; selector = CSSSelectorList::next(*selector)) {
if (selector != m_styleRule->selectorList().first())
- builder.append(", ");
+ builder.appendLiteral(", ");
builder.append(selector->selectorText());
}
return builder.toString();
« no previous file with comments | « Source/core/css/CSSSelectorList.cpp ('k') | Source/core/css/CSSSupportsRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698