| 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 2dafbeace3628c6b813abea5e70ea8deb2bc1a2a..0e6e7b10d65bb61bc25e446e594e4d59d0a675b4 100644
|
| --- a/Source/core/css/parser/BisonCSSParser-in.cpp
|
| +++ b/Source/core/css/parser/BisonCSSParser-in.cpp
|
| @@ -1905,10 +1905,6 @@ CSSParserSelector* BisonCSSParser::rewriteSpecifiersWithNamespaceIfNeeded(CSSPar
|
| {
|
| if (m_defaultNamespace != starAtom || specifiers->needsCrossingTreeScopeBoundary())
|
| return rewriteSpecifiersWithElementName(nullAtom, starAtom, specifiers, /*tagIsForNamespaceRule*/true);
|
| - if (CSSParserSelector* distributedPseudoElementSelector = specifiers->findDistributedPseudoElementSelector()) {
|
| - specifiers->prependTagSelector(QualifiedName(nullAtom, starAtom, m_defaultNamespace), /*tagIsForNamespaceRule*/true);
|
| - return rewriteSpecifiersForShadowDistributed(specifiers, distributedPseudoElementSelector);
|
| - }
|
| return specifiers;
|
| }
|
|
|
| @@ -1917,11 +1913,6 @@ CSSParserSelector* BisonCSSParser::rewriteSpecifiersWithElementName(const Atomic
|
| AtomicString determinedNamespace = namespacePrefix != nullAtom && m_styleSheet ? m_styleSheet->determineNamespace(namespacePrefix) : m_defaultNamespace;
|
| QualifiedName tag(namespacePrefix, elementName, determinedNamespace);
|
|
|
| - if (CSSParserSelector* distributedPseudoElementSelector = specifiers->findDistributedPseudoElementSelector()) {
|
| - specifiers->prependTagSelector(tag, tagIsForNamespaceRule);
|
| - return rewriteSpecifiersForShadowDistributed(specifiers, distributedPseudoElementSelector);
|
| - }
|
| -
|
| if (specifiers->needsCrossingTreeScopeBoundary())
|
| return rewriteSpecifiersWithElementNameForCustomPseudoElement(tag, elementName, specifiers, tagIsForNamespaceRule);
|
|
|
| @@ -1988,34 +1979,6 @@ CSSParserSelector* BisonCSSParser::rewriteSpecifiersWithElementNameForContentPse
|
| return specifiers;
|
| }
|
|
|
| -CSSParserSelector* BisonCSSParser::rewriteSpecifiersForShadowDistributed(CSSParserSelector* specifiers, CSSParserSelector* distributedPseudoElementSelector)
|
| -{
|
| - if (m_context.useCounter())
|
| - m_context.useCounter()->count(UseCounter::CSSPseudoElementPrefixedDistributed);
|
| - CSSParserSelector* argumentSelector = distributedPseudoElementSelector->functionArgumentSelector();
|
| - ASSERT(argumentSelector);
|
| - ASSERT(!specifiers->isDistributedPseudoElement());
|
| - for (CSSParserSelector* end = specifiers; end->tagHistory(); end = end->tagHistory()) {
|
| - if (end->tagHistory()->isDistributedPseudoElement()) {
|
| - end->clearTagHistory();
|
| - break;
|
| - }
|
| - }
|
| - CSSParserSelector* end = argumentSelector;
|
| - while (end->tagHistory())
|
| - end = end->tagHistory();
|
| -
|
| - switch (end->relation()) {
|
| - case CSSSelector::Child:
|
| - case CSSSelector::Descendant:
|
| - end->setTagHistory(sinkFloatingSelector(specifiers));
|
| - end->setRelationIsAffectedByPseudoContent();
|
| - return argumentSelector;
|
| - default:
|
| - return 0;
|
| - }
|
| -}
|
| -
|
| CSSParserSelector* BisonCSSParser::rewriteSpecifiers(CSSParserSelector* specifiers, CSSParserSelector* newSpecifier)
|
| {
|
| if (newSpecifier->needsCrossingTreeScopeBoundary()) {
|
|
|