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

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

Issue 1574323003: Split compound selector after consume finished. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@upload-base
Patch Set: Removed obsolete serialization hack and fixed unit tests. Created 4 years, 11 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 2910c45972c2fd945cbc0bc497337606b813006f..24614344a7a7ddb492bd9433d31d07105abf8449 100644
--- a/third_party/WebKit/Source/core/css/CSSSelector.cpp
+++ b/third_party/WebKit/Source/core/css/CSSSelector.cpp
@@ -652,10 +652,6 @@ String CSSSelector::selectorText(const String& rightSide) const
} else if (cs->m_match == PseudoElement) {
str.appendLiteral("::");
str.append(cs->serializingValue());
- // ::content is always stored at the end of the compound.
- if (cs->pseudoType() == PseudoContent && cs->relation() == SubSelector && cs->tagHistory()) {
- return cs->tagHistory()->selectorText() + str.toString() + rightSide;
- }
} else if (cs->isAttributeSelector()) {
str.append('[');
const AtomicString& prefix = cs->attribute().prefix();

Powered by Google App Engine
This is Rietveld 408576698