mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
style: Bail out when collecting invalidations for nested rules if any of them make us fully invalid.
Differential Revision: https://phabricator.services.mozilla.com/D87446
This commit is contained in:
parent
c200b67395
commit
f2dfe7f08c
1 changed files with 4 additions and 1 deletions
|
@ -564,7 +564,10 @@ impl StylesheetInvalidationSet {
|
|||
let rules =
|
||||
EffectiveRulesIterator::effective_children(device, quirks_mode, guard, rule);
|
||||
for rule in rules {
|
||||
self.collect_invalidations_for_rule(rule, guard, device, quirks_mode)
|
||||
self.collect_invalidations_for_rule(rule, guard, device, quirks_mode);
|
||||
if self.fully_invalid {
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue