Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: Source/core/css/SelectorChecker.cpp

Issue 14846002: Implement the Custom Elements :unresolved pseudoclass (Closed) Base URL: svn://
Patch Set: Adds a test and fixes style sharing. Created 7 years, 8 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: Source/core/css/SelectorChecker.cpp
diff --git a/Source/core/css/SelectorChecker.cpp b/Source/core/css/SelectorChecker.cpp
index 1c68cc87d1ad9a35ddd279caa8940bfe7045fe16..18a589f484746ee4a5e462981f9ad322c4296544 100644
--- a/Source/core/css/SelectorChecker.cpp
+++ b/Source/core/css/SelectorChecker.cpp
@@ -32,6 +32,7 @@
#include "core/css/CSSSelector.h"
#include "core/css/CSSSelectorList.h"
#include "core/css/SiblingTraversalStrategies.h"
+#include "core/dom/CustomElementRegistry.h"
#include "core/dom/Document.h"
#include "core/dom/NodeRenderStyle.h"
#include "core/dom/ShadowRoot.h"
@@ -715,6 +716,11 @@ bool SelectorChecker::checkOne(const SelectorCheckingContext& context, const Sib
+ case CSSSelector::PseudoUnresolved:
+ if (element->isUnresolvedCustomElement())
+ return true;
+ break;
case CSSSelector::PseudoHorizontal:
case CSSSelector::PseudoVertical:
case CSSSelector::PseudoDecrement:

Powered by Google App Engine
This is Rietveld 408576698