mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
style: Don't try to go down the tree if there aren't invalidations.
This can happen when adding an empty stylesheet, for example. Bug: 1372068 MozReview-Commit-ID: Jtm4eJBWjEA
This commit is contained in:
parent
4434509088
commit
36bac58863
1 changed files with 5 additions and 0 deletions
|
@ -155,6 +155,11 @@ impl StylesheetInvalidationSet {
|
|||
return true;
|
||||
}
|
||||
|
||||
if self.invalid_scopes.is_empty() {
|
||||
debug!("process_invalidations_in_subtree: empty invalidation set");
|
||||
return false;
|
||||
}
|
||||
|
||||
for scope in &self.invalid_scopes {
|
||||
if scope.matches(element) {
|
||||
debug!("process_invalidations_in_subtree: {:?} matched {:?}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue