style: Look at the right element for exportparts in each_applicable_non_document_style_rule_data

Otherwise we might not find those rules for invalidation.

Differential Revision: https://phabricator.services.mozilla.com/D115130
This commit is contained in:
Emilio Cobos Álvarez 2023-05-21 21:59:12 +02:00 committed by Oriol Brufau
parent 4df282dab7
commit 204cb7a9c0

View file

@ -881,7 +881,7 @@ pub trait TElement:
}
}
// TODO: Could be more granular.
if !shadow.host().exports_any_part() {
if !inner_shadow_host.exports_any_part() {
break;
}
inner_shadow = shadow;