mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Make all DOM manipulation wait until it's safe to do so (ie. all reflows for the page have completed). Fix a race where a newly-initiated reflow would be considered complete when receiving the completion notice for the previous reflow.
This commit is contained in:
parent
37787d55d0
commit
d465abdb1c
7 changed files with 49 additions and 10 deletions
|
@ -360,7 +360,7 @@ impl LayoutTask {
|
|||
// FIXME(pcwalton): This should probably be *one* channel, but we can't fix this without
|
||||
// either select or a filtered recv() that only looks for messages of a given type.
|
||||
data.script_join_chan.send(());
|
||||
data.script_chan.send(ReflowCompleteMsg(self.id));
|
||||
data.script_chan.send(ReflowCompleteMsg(self.id, data.id));
|
||||
}
|
||||
|
||||
/// Handles a query from the script task. This is the main routine that DOM functions like
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue