Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/core/css/CSSPageRule.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.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/core/css/CSSPageRule.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSPageRule.cpp b/third_party/WebKit/Source/core/css/CSSPageRule.cpp
index 86bac3581b45a878effc3780c084eb7cb5148e6e..b8a09f7907af24477738658a9f292af586e8a84b 100644
--- a/third_party/WebKit/Source/core/css/CSSPageRule.cpp
+++ b/third_party/WebKit/Source/core/css/CSSPageRule.cpp
@@ -75,12 +75,12 @@
String CSSPageRule::cssText() const
{
StringBuilder result;
- result.append("@page ");
+ result.appendLiteral("@page ");
String pageSelectors = selectorText();
result.append(pageSelectors);
if (!pageSelectors.isEmpty())
- result.append(" ");
- result.append("{ ");
+ result.appendLiteral(" ");
+ result.appendLiteral("{ ");
String decls = m_pageRule->properties().asText();
result.append(decls);
if (!decls.isEmpty())
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSNamespaceRule.cpp ('k') | third_party/WebKit/Source/core/css/CSSPaintValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine