mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 06:48:38 +09:00
Issue #1593 - Follow-up: Copy mIsRelevantLink value over rather than calling IsLink
Calling IsLink ignores whatever state we have for aTreeMatchContext and will trigger an assertion if aTreeMatchContext.mForStyling is false. This also adds a comment about what that line effectively does.
This commit is contained in:
parent
9bebb3a61a
commit
0391e8ab09
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue