mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 06:18:38 +09:00
Issue #2250 - Part 2: Ignore the ancestor filter assertion if rule matching is restricted or if the current element is under a shadow host
This only affects debug builds.
This commit is contained in:
parent
1c2dd6aee0
commit
3d917c9965
1 changed files with 5 additions and 1 deletions
|
|
@ -680,7 +680,11 @@ void RuleHash::EnumerateAllRules(Element* aElement, ElementDependentRuleProcesso
|
|||
aData->mTreeMatchContext.mAncestorFilter.HasFilter() ?
|
||||
&aData->mTreeMatchContext.mAncestorFilter : nullptr;
|
||||
#ifdef DEBUG
|
||||
if (filter) {
|
||||
bool isRestricted = (aData->mTreeMatchContext.mShadowHosts.Length() > 0 ||
|
||||
aData->mTreeMatchContext.mRestrictToSlottedPseudo ||
|
||||
aData->mTreeMatchContext.mOnlyMatchHostPseudo ||
|
||||
aData->mTreeMatchContext.mForAssignedSlot);
|
||||
if (filter && !isRestricted) {
|
||||
filter->AssertHasAllAncestors(aElement);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue