summaryrefslogtreecommitdiff
path: root/layout/style/nsCSSRuleProcessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layout/style/nsCSSRuleProcessor.cpp')
-rw-r--r--layout/style/nsCSSRuleProcessor.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/layout/style/nsCSSRuleProcessor.cpp b/layout/style/nsCSSRuleProcessor.cpp
index ff8b8ec032..385d9899b5 100644
--- a/layout/style/nsCSSRuleProcessor.cpp
+++ b/layout/style/nsCSSRuleProcessor.cpp
@@ -1976,11 +1976,9 @@ static bool SelectorMatches(Element* aElement,
return false;
}
- NodeMatchContext nodeContext(EventStates(),
- aNodeMatchContext.mIsRelevantLink);
if (!SelectorListMatches(aElement,
pseudoClass,
- nodeContext,
+ aNodeMatchContext,
aTreeMatchContext)) {
return false;
}
@@ -2028,7 +2026,7 @@ 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(),
+ NodeMatchContext nodeContext(aNodeMatchContext.mStateMask,
aNodeMatchContext.mIsRelevantLink);
if (!SelectorListMatches(aElement,
pseudoClass,