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:
Emilio Cobos Álvarez 2017-05-11 01:45:00 +02:00
parent 50e0c67e2c
commit 677daaabc5
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 39 additions and 30 deletions

View file

@ -1091,7 +1091,7 @@ impl LayoutThread {
marker: PhantomData,
};
let needs_dirtying = self.stylist.update(
&data.document_stylesheets,
data.document_stylesheets.iter(),
&guards,
Some(ua_stylesheets),
data.stylesheets_changed,