diff options
author | FranklinDM <mrmineshafter17@gmail.com> | 2023-02-18 19:29:42 +0800 |
---|---|---|
committer | FranklinDM <mrmineshafter17@gmail.com> | 2023-02-20 23:35:55 +0800 |
commit | 828c8cc46f3866d45482e933a29ab3e157a63610 (patch) | |
tree | 06ed58c07d4a63721ea831ba49c22a26a04d100f /dom/base/nsINode.cpp | |
parent | bc399f78712db00edd71213bc048080ccdea72bc (diff) | |
download | uxp-828c8cc46f3866d45482e933a29ab3e157a63610.tar.gz |
Issue #2078 - Part 3: Rename nsCSSRuleProcessor::SelectorListMatches to RestrictedSelectorListMatches
This is in preparation for merging the logic of RestrictedSelectorListMatches and AnySelectorInArgListMatches.
Diffstat (limited to 'dom/base/nsINode.cpp')
-rw-r--r-- | dom/base/nsINode.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dom/base/nsINode.cpp b/dom/base/nsINode.cpp index db8986c4e8..749a3ee4a2 100644 --- a/dom/base/nsINode.cpp +++ b/dom/base/nsINode.cpp @@ -2879,9 +2879,9 @@ FindMatchingElementsWithId(const nsAString& aId, nsINode* aRoot, // We have an element with the right id and it's a strict descendant // of aRoot. Make sure it really matches the selector. if (!aMatchInfo || - nsCSSRuleProcessor::SelectorListMatches(element, - aMatchInfo->mMatchContext, - aMatchInfo->mSelectorList)) { + nsCSSRuleProcessor::RestrictedSelectorListMatches(element, + aMatchInfo->mMatchContext, + aMatchInfo->mSelectorList)) { aList.AppendElement(element); if (onlyFirstMatch) { return; @@ -2932,9 +2932,9 @@ FindMatchingElements(nsINode* aRoot, nsCSSSelectorList* aSelectorList, T &aList, cur; cur = cur->GetNextNode(aRoot)) { if (cur->IsElement() && - nsCSSRuleProcessor::SelectorListMatches(cur->AsElement(), - matchingContext, - aSelectorList)) { + nsCSSRuleProcessor::RestrictedSelectorListMatches(cur->AsElement(), + matchingContext, + aSelectorList)) { if (onlyFirstMatch) { aList.AppendElement(cur->AsElement()); return; |