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

Unified Diff: third_party/WebKit/Source/core/css/MediaQuery.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/MediaQuery.cpp
diff --git a/third_party/WebKit/Source/core/css/MediaQuery.cpp b/third_party/WebKit/Source/core/css/MediaQuery.cpp
index f440b1c1ced5ca7780bfc08086457829c985638d..4080e0a943832f249c0241a1f6a9616586287582 100644
--- a/third_party/WebKit/Source/core/css/MediaQuery.cpp
+++ b/third_party/WebKit/Source/core/css/MediaQuery.cpp
@@ -42,10 +42,10 @@
StringBuilder result;
switch (m_restrictor) {
case MediaQuery::Only:
- result.append("only ");
+ result.appendLiteral("only ");
break;
case MediaQuery::Not:
- result.append("not ");
+ result.appendLiteral("not ");
break;
case MediaQuery::None:
break;
@@ -58,12 +58,12 @@
if (m_mediaType != MediaTypeNames::all || m_restrictor != None) {
result.append(m_mediaType);
- result.append(" and ");
+ result.appendLiteral(" and ");
}
result.append(m_expressions.at(0)->serialize());
for (size_t i = 1; i < m_expressions.size(); ++i) {
- result.append(" and ");
+ result.appendLiteral(" and ");
result.append(m_expressions.at(i)->serialize());
}
return result.toString();
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaList.cpp ('k') | third_party/WebKit/Source/core/css/MediaQueryExp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698