mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 06:48:38 +09:00
Issue #2078 - Part 3: Rename nsCSSRuleProcessor::SelectorListMatches to RestrictedSelectorListMatches
This is in preparation for merging the logic of RestrictedSelectorListMatches and AnySelectorInArgListMatches.
This commit is contained in:
parent
0648ec64bb
commit
14e8922dca
5 changed files with 24 additions and 22 deletions
|
|
@ -465,7 +465,7 @@ inDOMUtils::SelectorMatchesElement(nsIDOMElement* aElement,
|
|||
}
|
||||
|
||||
// We have a matching pseudo element, now remove it so we can compare
|
||||
// directly against |element| when proceeding into SelectorListMatches.
|
||||
// directly against |element| when proceeding into RestrictedSelectorListMatches.
|
||||
// It's OK to do this - we just cloned sel and nothing else is using it.
|
||||
sel->RemoveRightmostSelector();
|
||||
}
|
||||
|
|
@ -476,8 +476,9 @@ inDOMUtils::SelectorMatchesElement(nsIDOMElement* aElement,
|
|||
nsRuleWalker::eRelevantLinkUnvisited,
|
||||
element->OwnerDoc(),
|
||||
TreeMatchContext::eNeverMatchVisited);
|
||||
*aMatches = nsCSSRuleProcessor::SelectorListMatches(element, matchingContext,
|
||||
sel);
|
||||
*aMatches = nsCSSRuleProcessor::RestrictedSelectorListMatches(element,
|
||||
matchingContext,
|
||||
sel);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue