style: Only flush stylesheet invalidations for origins that have changed.

This commit is contained in:
Cameron McCormack 2017-08-12 17:23:56 +08:00
parent f3a7adfcc7
commit 84451e521b
2 changed files with 19 additions and 9 deletions

View file

@ -163,7 +163,7 @@ impl PerDocumentStyleDataImpl {
}
let author_style_disabled = self.stylesheets.author_style_disabled();
self.stylist.clear();
let iter = self.stylesheets.flush(document_element);
self.stylist.rebuild(
iter,