Add trace hooks for Window and Document, and remove explicit rooting for the root DOM node. Fixes #901.

This commit is contained in:
Josh Matthews 2013-09-11 12:18:23 -07:00
parent 9640324721
commit 636c30affe
7 changed files with 66 additions and 39 deletions

View file

@ -555,9 +555,6 @@ impl ScriptTask {
fn handle_exit_msg(&mut self) {
for page in self.page_tree.iter() {
page.join_layout();
do page.frame.unwrap().document.with_mut_base |doc| {
doc.teardown();
}
page.layout_chan.send(layout_interface::ExitMsg);
}
self.compositor.close();