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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSParser.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/parser/CSSParser.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSParser.cpp
index 6f892e08afeda035bc1f9b8a592eafbf79de78ee..8f203792c900b3d538cc5e913921230e85989d96 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParser.cpp
@@ -171,11 +171,11 @@ bool CSSParser::parseSystemColor(Color& color, const String& colorString)
CSSValue* CSSParser::parseFontFaceDescriptor(CSSPropertyID propertyID, const String& propertyValue, const CSSParserContext& context)
{
StringBuilder builder;
- builder.appendLiteral("@font-face { ");
+ builder.append("@font-face { ");
builder.append(getPropertyNameString(propertyID));
- builder.appendLiteral(" : ");
+ builder.append(" : ");
builder.append(propertyValue);
- builder.appendLiteral("; }");
+ builder.append("; }");
StyleRuleBase* rule = parseRule(context, nullptr, builder.toString());
if (!rule || !rule->isFontFaceRule())
return nullptr;
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleRuleKeyframe.cpp ('k') | third_party/WebKit/Source/core/dom/DatasetDOMStringMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698