Trigger a reflow when nodes are appended and removed from the document. Fixes #907.

This commit is contained in:
Josh Matthews 2013-09-11 21:03:56 -07:00
parent 2372a84149
commit 4ec428b9d6
3 changed files with 50 additions and 5 deletions

View file

@ -611,11 +611,6 @@ impl ScriptTask {
let document = HTMLDocument::new(root, Some(window));
// Tie the root into the document.
do root.with_mut_base |base| {
base.add_to_doc(document)
}
// Create the root frame.
page.frame = Some(Frame {
document: document,
@ -623,6 +618,11 @@ impl ScriptTask {
});
page.url = Some((url.clone(), true));
// Tie the root into the document.
do root.with_mut_base |base| {
base.add_to_doc(document)
}
// Send style sheets over to layout.
//
// FIXME: These should be streamed to layout as they're parsed. We don't need to stop here