diff --git a/layout/style/nsCSSRuleProcessor.cpp b/layout/style/nsCSSRuleProcessor.cpp index 3644e3e45b..de4ee0fc3b 100644 --- a/layout/style/nsCSSRuleProcessor.cpp +++ b/layout/style/nsCSSRuleProcessor.cpp @@ -1969,8 +1969,10 @@ static bool SelectorMatches(Element* aElement, } // Match if any selector in the argument list matches. + // FIXME: What this effectively does is bypass the "featureless" + // selector check under SelectorMatches. NodeMatchContext nodeContext(EventStates(), - nsCSSRuleProcessor::IsLink(aElement)); + aNodeMatchContext.mIsRelevantLink); if (SelectorListMatches(aElement, pseudoClass, nodeContext,