Chromium Code Reviews| 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 8d561e05e0229d2e56f0d9ff493eec6011612244..ab051ed0d77a98a903c674505354072c6ebf780d 100644 |
| --- a/Source/core/css/parser/BisonCSSParser-in.cpp |
| +++ b/Source/core/css/parser/BisonCSSParser-in.cpp |
| @@ -302,6 +302,19 @@ 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::PseudoMarker: |
| + return false; |
| + default: |
| + return true; |
| + } |
|
Julien - ping for review
2014/12/05 19:44:03
return type != CSSSelection::PseudoMarker?
dsinclair
2015/01/23 20:46:36
Done. I'd originally written this thinking we'd ha
|
| +} |
| + |
| PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> BisonCSSParser::parseInlineStyleDeclaration(const String& string, Element* element) |
| { |
| Document& document = element->document(); |