Index: Source/core/html/HTMLContentElement.cpp |
diff --git a/Source/core/html/HTMLContentElement.cpp b/Source/core/html/HTMLContentElement.cpp |
index 9636407fd128238528f229e59a393bd9754b0ac9..d23563ab6a17502a2941cca109e422d25779216b 100644 |
--- a/Source/core/html/HTMLContentElement.cpp |
+++ b/Source/core/html/HTMLContentElement.cpp |
@@ -98,7 +98,7 @@ bool HTMLContentElement::validateSelect() const |
if (!m_selectorList.isValid()) |
return false; |
- bool allowAnyPseudoClasses = RuntimeEnabledFeatures::pseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled() || (containingShadowRoot() && containingShadowRoot()->type() == ShadowRoot::UserAgentShadowRoot); |
+ bool allowAnyPseudoClasses = RuntimeEnabledFeatures::pseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled() || (containingShadowRoot() && containingShadowRoot()->type() == ShadowRoot::ClosedShadowRoot); |
for (const CSSSelector* selector = m_selectorList.first(); selector; selector = m_selectorList.next(*selector)) { |
if (!selector->isCompound()) |