diff options
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r-- | src/components/script/script_task.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index 4025de24bb4..95c433c8569 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -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 |