mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Look at XBL stylists to collect dependencies too.
Bug: 1375969 Reviewed-By: heycam MozReview-Commit-ID: 72wZj6o667V
This commit is contained in:
parent
215d14b37e
commit
f8346e598e
1 changed files with 11 additions and 0 deletions
|
@ -176,6 +176,17 @@ impl<'a, 'b: 'a, E> TreeStyleInvalidator<'a, 'b, E>
|
|||
shared_context.stylist.invalidation_map(),
|
||||
);
|
||||
|
||||
// TODO(emilio): Consider storing dependencies from the UA sheet in
|
||||
// a different map. If we do that, we can skip the stuff on the
|
||||
// shared stylist iff cut_off_inheritance is true, and we can look
|
||||
// just at that map.
|
||||
let _cut_off_inheritance =
|
||||
self.element.each_xbl_stylist(|stylist| {
|
||||
collector.collect_dependencies_in_invalidation_map(
|
||||
stylist.invalidation_map(),
|
||||
);
|
||||
});
|
||||
|
||||
collector.invalidates_self
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue