Index: Source/core/html/HTMLContentElement.cpp |
diff --git a/Source/core/html/HTMLContentElement.cpp b/Source/core/html/HTMLContentElement.cpp |
index 1602680764bd74a1c2d2c8518913c90b57bad8ad..228b23561e84a97f06a0e4400e35f77f0d05484e 100644 |
--- a/Source/core/html/HTMLContentElement.cpp |
+++ b/Source/core/html/HTMLContentElement.cpp |
@@ -82,6 +82,10 @@ void HTMLContentElement::parseAttribute(const QualifiedName& name, const AtomicS |
static inline bool includesDisallowedPseudoClass(const CSSSelector& selector) |
{ |
+ if (selector.pseudoType() == CSSSelector::PseudoNot) { |
+ const CSSSelector* subSelector = selector.selectorList()->first(); |
hayato
2014/09/10 06:29:11
It looks that current implementation of ':not()' c
|
+ return subSelector->match() == CSSSelector::PseudoClass; |
+ } |
return selector.match() == CSSSelector::PseudoClass && selector.pseudoType() != CSSSelector::PseudoNot; |
hayato
2014/09/10 06:29:11
You can remove `selector.pseudoType() != CSSSelect
yurina1
2014/09/10 11:02:53
Done.
|
} |