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

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

Issue 2017053003: Remove StringBuilder::appendLiteral. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase. 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 4080e0a943832f249c0241a1f6a9616586287582..f440b1c1ced5ca7780bfc08086457829c985638d 100644
--- a/third_party/WebKit/Source/core/css/MediaQuery.cpp
+++ b/third_party/WebKit/Source/core/css/MediaQuery.cpp
@@ -42,10 +42,10 @@ String MediaQuery::serialize() const
StringBuilder result;
switch (m_restrictor) {
case MediaQuery::Only:
- result.appendLiteral("only ");
+ result.append("only ");
break;
case MediaQuery::Not:
- result.appendLiteral("not ");
+ result.append("not ");
break;
case MediaQuery::None:
break;
@@ -58,12 +58,12 @@ String MediaQuery::serialize() const
if (m_mediaType != MediaTypeNames::all || m_restrictor != None) {
result.append(m_mediaType);
- result.appendLiteral(" and ");
+ result.append(" and ");
}
result.append(m_expressions.at(0)->serialize());
for (size_t i = 1; i < m_expressions.size(); ++i) {
- result.appendLiteral(" and ");
+ result.append(" 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