Index: Source/core/css/CSSSelector.cpp |
diff --git a/Source/core/css/CSSSelector.cpp b/Source/core/css/CSSSelector.cpp |
index 2670210b67480ac749f930702aa531099d420ad1..4f780baee55ad7f582bb34d64c0931ab97604f38 100644 |
--- a/Source/core/css/CSSSelector.cpp |
+++ b/Source/core/css/CSSSelector.cpp |
@@ -242,6 +242,7 @@ PseudoId CSSSelector::pseudoId(PseudoType type) |
case PseudoRightPage: |
case PseudoInRange: |
case PseudoOutOfRange: |
+ case PseudoInternalCustomElement: |
case PseudoUserAgentCustomElement: |
case PseudoWebKitCustomElement: |
case PseudoCue: |
@@ -278,8 +279,6 @@ struct NameToPseudoStruct { |
// These tables should be kept sorted. |
const static NameToPseudoStruct pseudoTypeWithoutArgumentsMap[] = { |
{"-internal-list-box", CSSSelector::PseudoListBox}, |
-{"-internal-media-controls-cast-button", CSSSelector::PseudoWebKitCustomElement}, |
-{"-internal-media-controls-overlay-cast-button", CSSSelector::PseudoWebKitCustomElement}, |
{"-internal-spatial-navigation-focus", CSSSelector::PseudoSpatialNavigationFocus}, |
{"-webkit-any-link", CSSSelector::PseudoAnyLink}, |
{"-webkit-autofill", CSSSelector::PseudoAutofill}, |
@@ -441,6 +440,8 @@ CSSSelector::PseudoType CSSSelector::parsePseudoType(const AtomicString& name, b |
if (pseudoType != PseudoUnknown) |
return pseudoType; |
+ if (name.startsWith("-internal-")) |
+ return PseudoInternalCustomElement; |
if (name.startsWith("-webkit-")) |
return PseudoWebKitCustomElement; |
if (name.startsWith("cue")) |
@@ -476,6 +477,7 @@ void CSSSelector::extractPseudoType() const |
case PseudoScrollbarTrack: |
case PseudoScrollbarTrackPiece: |
case PseudoSelection: |
+ case PseudoInternalCustomElement: |
case PseudoUserAgentCustomElement: |
case PseudoWebKitCustomElement: |
case PseudoContent: |