style: Look at XBL stylists to collect dependencies too.

Bug: 1375969
Reviewed-By: heycam
MozReview-Commit-ID: 72wZj6o667V
This commit is contained in:
Emilio Cobos Álvarez 2017-06-27 18:32:55 -07:00
parent 215d14b37e
commit f8346e598e
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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
};