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

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