mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
style: Parameterize the update and rebuild methods to take an iterator.
In preparation to avoid cloning the stylesheets while rebuilding in Gecko.
This commit is contained in:
parent
50e0c67e2c
commit
677daaabc5
5 changed files with 39 additions and 30 deletions
|
@ -105,7 +105,7 @@ impl PerDocumentStyleDataImpl {
|
|||
let mut stylesheets = Vec::<Arc<Stylesheet>>::new();
|
||||
self.stylesheets.flush(&mut stylesheets);
|
||||
self.stylist.clear();
|
||||
self.stylist.rebuild(stylesheets.as_slice(),
|
||||
self.stylist.rebuild(stylesheets.iter(),
|
||||
&StylesheetGuards::same(guard),
|
||||
/* ua_sheets = */ None,
|
||||
/* stylesheets_changed = */ true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue