From dc6dbc63af8d75006feaac77fefcaeedc20f045e Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 15 Nov 2013 15:05:05 +0100 Subject: Make the HTML parser parse into the document rather than an element. This removes the duplicate html element. --- src/components/script/script_task.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/components/script/script_task.rs') diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index 7ad26a18eff..515dd1b0338 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -701,7 +701,7 @@ impl ScriptTask { self.constellation_chan.clone()); - let HtmlParserResult {root, discovery_port} = html_parsing_result; + let HtmlParserResult {discovery_port} = html_parsing_result; // Create the root frame. page.frame = Some(Frame { @@ -741,11 +741,8 @@ impl ScriptTask { } } - // Tie the root into the document. This will kick off the initial reflow - // of the page. - // FIXME: We have no way to ensure that the first reflow performed is a - // ReflowForDisplay operation. - document.set_root(root); + // Kick off the initial reflow of the page. + document.document().content_changed(); // No more reflow required page.url = Some((url, false)); -- cgit v1.2.3