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

Unified Diff: Source/core/html/HTMLContentElement.cpp

Issue 547363002: Reject pseudo class inside :not() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove Created 6 years, 3 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
« no previous file with comments | « LayoutTests/fast/dom/shadow/content-selector-query-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLContentElement.cpp
diff --git a/Source/core/html/HTMLContentElement.cpp b/Source/core/html/HTMLContentElement.cpp
index 1602680764bd74a1c2d2c8518913c90b57bad8ad..f75204f582e17f02efab4416532f89d0e339ce7c 100644
--- a/Source/core/html/HTMLContentElement.cpp
+++ b/Source/core/html/HTMLContentElement.cpp
@@ -82,7 +82,11 @@ void HTMLContentElement::parseAttribute(const QualifiedName& name, const AtomicS
static inline bool includesDisallowedPseudoClass(const CSSSelector& selector)
{
- return selector.match() == CSSSelector::PseudoClass && selector.pseudoType() != CSSSelector::PseudoNot;
+ if (selector.pseudoType() == CSSSelector::PseudoNot) {
+ const CSSSelector* subSelector = selector.selectorList()->first();
+ return subSelector->match() == CSSSelector::PseudoClass;
+ }
+ return selector.match() == CSSSelector::PseudoClass;
}
bool HTMLContentElement::validateSelect() const
« no previous file with comments | « LayoutTests/fast/dom/shadow/content-selector-query-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698