Index: third_party/WebKit/Source/core/css/SelectorChecker.cpp |
diff --git a/third_party/WebKit/Source/core/css/SelectorChecker.cpp b/third_party/WebKit/Source/core/css/SelectorChecker.cpp |
index 4a45c2d770fb2ec8db58588357bcbe47aa2823ce..be4dc27bc6e06f9287aecb3657ea5b76d30e0e6c 100644 |
--- a/third_party/WebKit/Source/core/css/SelectorChecker.cpp |
+++ b/third_party/WebKit/Source/core/css/SelectorChecker.cpp |
@@ -916,6 +916,9 @@ bool SelectorChecker::checkPseudoClass(const SelectorCheckingContext& context, M |
return context.scope == &element; |
case CSSSelector::PseudoUnresolved: |
return element.isUnresolvedV0CustomElement(); |
+ case CSSSelector::PseudoDefined: |
+ DCHECK(RuntimeEnabledFeatures::customElementsV1Enabled()); |
+ return element.isDefined(); |
case CSSSelector::PseudoHost: |
case CSSSelector::PseudoHostContext: |
return checkPseudoHost(context, result); |