mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #2078 - Follow-up: Don't try to resolve ancestor link elements when matching for Has*DependentStyle
This commit is contained in:
parent
2e3953399a
commit
77728935ef
1 changed files with 2 additions and 1 deletions
|
|
@ -2772,8 +2772,9 @@ static bool SelectorListMatches(Element* aElement,
|
|||
nsCSSSelector* next = selector->mNext;
|
||||
SelectorMatchesTreeFlags selectorTreeFlags = SelectorMatchesTreeFlags(0);
|
||||
// Try to look for the closest ancestor link element if we're processing
|
||||
// the selector list argument of a pseudo-class.
|
||||
// the selector list argument of a pseudo-class, but only if for a new style context (see SelectorMatches).
|
||||
if (!aNodeMatchContext.mIsRelevantLink &&
|
||||
aTreeMatchContext.mForStyling &&
|
||||
(aSelectorFlags & SelectorMatchesFlags::IS_PSEUDO_CLASS_ARGUMENT)) {
|
||||
selectorTreeFlags = eLookForRelevantLink;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue