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

Unified Diff: third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.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/CSSFontFaceSrcValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp b/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp
index 99d39f6f751fa09ea110ce465b65b818f13bdbdd..42504fcd08b39e6a07b722653a7b7abebe80fba7 100644
--- a/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp
@@ -56,16 +56,16 @@ String CSSFontFaceSrcValue::customCSSText() const
{
StringBuilder result;
if (isLocal()) {
- result.appendLiteral("local(");
+ result.append("local(");
result.append(serializeString(m_absoluteResource));
- result.appendLiteral(")");
+ result.append(")");
} else {
result.append(serializeURI(m_specifiedResource));
}
if (!m_format.isEmpty()) {
- result.appendLiteral(" format(");
+ result.append(" format(");
result.append(serializeString(m_format));
- result.appendLiteral(")");
+ result.append(")");
}
return result.toString();
}
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSFontFaceRule.cpp ('k') | third_party/WebKit/Source/core/css/CSSFontFeatureValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698