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

Unified Diff: third_party/WebKit/Source/core/css/CSSSelector.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/CSSSelector.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSSelector.cpp b/third_party/WebKit/Source/core/css/CSSSelector.cpp
index 396593274295db4bc04c8468dd87adea763aacef..9662a273eac560ae65fd66c9be668c3455a0edf5 100644
--- a/third_party/WebKit/Source/core/css/CSSSelector.cpp
+++ b/third_party/WebKit/Source/core/css/CSSSelector.cpp
@@ -671,7 +671,7 @@ String CSSSelector::selectorText(const String& rightSide) const
break;
}
} else if (cs->m_match == PseudoElement) {
- str.appendLiteral("::");
+ str.append("::");
str.append(cs->serializingValue());
} else if (cs->isAttributeSelector()) {
str.append('[');
@@ -690,19 +690,19 @@ String CSSSelector::selectorText(const String& rightSide) const
str.append(']');
break;
case AttributeList:
- str.appendLiteral("~=");
+ str.append("~=");
break;
case AttributeHyphen:
- str.appendLiteral("|=");
+ str.append("|=");
break;
case AttributeBegin:
- str.appendLiteral("^=");
+ str.append("^=");
break;
case AttributeEnd:
- str.appendLiteral("$=");
+ str.append("$=");
break;
case AttributeContain:
- str.appendLiteral("*=");
+ str.append("*=");
break;
default:
break;
@@ -710,7 +710,7 @@ String CSSSelector::selectorText(const String& rightSide) const
if (cs->m_match != AttributeSet) {
serializeString(cs->serializingValue(), str);
if (cs->attributeMatch() == CaseInsensitive)
- str.appendLiteral(" i");
+ str.append(" i");
str.append(']');
}
}
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPaintValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSSelectorList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698