| Index: third_party/WebKit/Source/core/css/SelectorChecker.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/SelectorChecker.cpp b/third_party/WebKit/Source/core/css/SelectorChecker.cpp
|
| index 6de86ec54df0cd76930ff7c0a95dc730962ca3c2..ed85755bf7262c216015a8ca8b46f0aa459f2aff 100644
|
| --- a/third_party/WebKit/Source/core/css/SelectorChecker.cpp
|
| +++ b/third_party/WebKit/Source/core/css/SelectorChecker.cpp
|
| @@ -280,16 +280,8 @@ SelectorChecker::Match SelectorChecker::matchForSubSelector(const SelectorChecki
|
| SelectorCheckingContext nextContext = prepareNextContextForRelation(context);
|
|
|
| PseudoId dynamicPseudo = result.dynamicPseudo;
|
| - // a selector is invalid if something follows a pseudo-element
|
| - // We make an exception for scrollbar pseudo elements and allow a set of pseudo classes (but nothing else)
|
| - // to follow the pseudo elements.
|
| nextContext.hasScrollbarPseudo = dynamicPseudo != NOPSEUDO && (context.scrollbar || dynamicPseudo == SCROLLBAR_CORNER || dynamicPseudo == RESIZER);
|
| nextContext.hasSelectionPseudo = dynamicPseudo == SELECTION;
|
| - if ((context.inRightmostCompound || m_mode == CollectingCSSRules || m_mode == CollectingStyleRules || m_mode == QueryingRules) && dynamicPseudo != NOPSEUDO
|
| - && !nextContext.hasSelectionPseudo
|
| - && !(nextContext.hasScrollbarPseudo && nextContext.selector->match() == CSSSelector::PseudoClass))
|
| - return SelectorFailsCompletely;
|
| -
|
| nextContext.isSubSelector = true;
|
| return matchSelector(nextContext, result);
|
| }
|
|
|