mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
Fix regression to :-moz-bound-element caused by the :not checkin.
This commit is contained in:
parent
842bc8982d
commit
fa6e409fe0
@ -3023,6 +3023,20 @@ static PRBool SelectorMatches(SelectorMatchesData &data,
|
||||
result = localTrue;
|
||||
}
|
||||
}
|
||||
else if (nsCSSAtoms::xblBoundElementPseudo == pseudoClass->mAtom) {
|
||||
if (!data.mStyleRuleSupplier) {
|
||||
nsCOMPtr<nsIPresShell> shell;
|
||||
data.mPresContext->GetShell(getter_AddRefs(shell));
|
||||
nsCOMPtr<nsIStyleSet> styleSet;
|
||||
shell->GetStyleSet(getter_AddRefs(styleSet));
|
||||
styleSet->GetStyleRuleSupplier(getter_AddRefs(data.mStyleRuleSupplier));
|
||||
}
|
||||
|
||||
if (data.mStyleRuleSupplier)
|
||||
data.mStyleRuleSupplier->MatchesScopedRoot(data.mContent, &result);
|
||||
else
|
||||
result = localFalse;
|
||||
}
|
||||
else if (nsCSSAtoms::langPseudo == pseudoClass->mAtom) {
|
||||
// XXX not yet implemented
|
||||
result = localFalse;
|
||||
@ -3064,20 +3078,6 @@ static PRBool SelectorMatches(SelectorMatchesData &data,
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (nsCSSAtoms::xblBoundElementPseudo == pseudoClass->mAtom) {
|
||||
if (!data.mStyleRuleSupplier) {
|
||||
nsCOMPtr<nsIPresShell> shell;
|
||||
data.mPresContext->GetShell(getter_AddRefs(shell));
|
||||
nsCOMPtr<nsIStyleSet> styleSet;
|
||||
shell->GetStyleSet(getter_AddRefs(styleSet));
|
||||
styleSet->GetStyleRuleSupplier(getter_AddRefs(data.mStyleRuleSupplier));
|
||||
}
|
||||
|
||||
if (data.mStyleRuleSupplier)
|
||||
data.mStyleRuleSupplier->MatchesScopedRoot(data.mContent, &result);
|
||||
else
|
||||
result = localFalse;
|
||||
}
|
||||
else {
|
||||
result = localFalse; // not a link
|
||||
}
|
||||
|
@ -3023,6 +3023,20 @@ static PRBool SelectorMatches(SelectorMatchesData &data,
|
||||
result = localTrue;
|
||||
}
|
||||
}
|
||||
else if (nsCSSAtoms::xblBoundElementPseudo == pseudoClass->mAtom) {
|
||||
if (!data.mStyleRuleSupplier) {
|
||||
nsCOMPtr<nsIPresShell> shell;
|
||||
data.mPresContext->GetShell(getter_AddRefs(shell));
|
||||
nsCOMPtr<nsIStyleSet> styleSet;
|
||||
shell->GetStyleSet(getter_AddRefs(styleSet));
|
||||
styleSet->GetStyleRuleSupplier(getter_AddRefs(data.mStyleRuleSupplier));
|
||||
}
|
||||
|
||||
if (data.mStyleRuleSupplier)
|
||||
data.mStyleRuleSupplier->MatchesScopedRoot(data.mContent, &result);
|
||||
else
|
||||
result = localFalse;
|
||||
}
|
||||
else if (nsCSSAtoms::langPseudo == pseudoClass->mAtom) {
|
||||
// XXX not yet implemented
|
||||
result = localFalse;
|
||||
@ -3064,20 +3078,6 @@ static PRBool SelectorMatches(SelectorMatchesData &data,
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (nsCSSAtoms::xblBoundElementPseudo == pseudoClass->mAtom) {
|
||||
if (!data.mStyleRuleSupplier) {
|
||||
nsCOMPtr<nsIPresShell> shell;
|
||||
data.mPresContext->GetShell(getter_AddRefs(shell));
|
||||
nsCOMPtr<nsIStyleSet> styleSet;
|
||||
shell->GetStyleSet(getter_AddRefs(styleSet));
|
||||
styleSet->GetStyleRuleSupplier(getter_AddRefs(data.mStyleRuleSupplier));
|
||||
}
|
||||
|
||||
if (data.mStyleRuleSupplier)
|
||||
data.mStyleRuleSupplier->MatchesScopedRoot(data.mContent, &result);
|
||||
else
|
||||
result = localFalse;
|
||||
}
|
||||
else {
|
||||
result = localFalse; // not a link
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user