Pass pending restyles instead of draining them from layout

This commit is contained in:
Anthony Ramine 2020-03-27 17:04:48 +01:00
parent 400c7012b1
commit 60ca98b753
7 changed files with 26 additions and 42 deletions

View file

@ -1617,13 +1617,14 @@ impl Window {
reflow_info: Reflow {
page_clip_rect: self.page_clip_rect.get(),
},
document: self.Document().upcast::<Node>().to_trusted_node_address(),
document: document.upcast::<Node>().to_trusted_node_address(),
stylesheets_changed,
window_size: self.window_size.get(),
origin: self.origin().immutable().clone(),
reflow_goal,
script_join_chan: join_chan,
dom_count: self.Document().dom_count(),
dom_count: document.dom_count(),
pending_restyles: document.drain_pending_restyles(),
};
self.layout_chan