Index: Source/core/css/parser/BisonCSSParser-in.cpp |
diff --git a/Source/core/css/parser/BisonCSSParser-in.cpp b/Source/core/css/parser/BisonCSSParser-in.cpp |
index b2cba11567fb278f920ece8e8c007d2c0aee9868..1da717e135f380826778d59c75a8d5930e8b658b 100644 |
--- a/Source/core/css/parser/BisonCSSParser-in.cpp |
+++ b/Source/core/css/parser/BisonCSSParser-in.cpp |
@@ -302,6 +302,21 @@ void BisonCSSParser::parseSelector(const String& string, CSSSelectorList& select |
m_selectorListForParseSelector = 0; |
} |
+bool BisonCSSParser::isSelectorAllowedInParsingMode(CSSSelector::PseudoType type) |
+{ |
+ if (isUASheetBehavior(m_context.mode())) |
+ return true; |
+ |
+ switch (type) { |
+ case CSSSelector::PseudoInternalCustomElement: |
+ case CSSSelector::PseudoListBox: |
+ case CSSSelector::PseudoSpatialNavigationFocus: |
+ return false; |
+ } |
+ |
+ return true; |
+} |
+ |
PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> BisonCSSParser::parseInlineStyleDeclaration(const String& string, Element* element) |
{ |
Document& document = element->document(); |