diff options
author | Ms2ger <ms2ger@gmail.com> | 2013-11-15 15:05:05 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2013-11-17 13:58:24 +0100 |
commit | dc6dbc63af8d75006feaac77fefcaeedc20f045e (patch) | |
tree | 8bd3262e0d295ba5586a43ed69f1d584fbb1c9f6 /src/components/script/script_task.rs | |
parent | 800c2b3c0f044776d9fa2aa2af5860ac248b8776 (diff) | |
download | servo-dc6dbc63af8d75006feaac77fefcaeedc20f045e.tar.gz servo-dc6dbc63af8d75006feaac77fefcaeedc20f045e.zip |
Make the HTML parser parse into the document rather than an element.
This removes the duplicate html element.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r-- | src/components/script/script_task.rs | 9 |
1 files changed, 3 insertions, 6 deletions
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)); |