mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue