diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-06-11 22:57:54 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-06-11 22:57:54 +0200 |
commit | ed333ad8c3a6d23ad156a7e588f637112f79dfe8 (patch) | |
tree | 2f9c4e7b5bb6aa2df735a0a72657781c1b00162a /src/components/script/script_task.rs | |
parent | 687722da2d2f63800d364326cf1e8a5ce5499830 (diff) | |
download | servo-ed333ad8c3a6d23ad156a7e588f637112f79dfe8.tar.gz servo-ed333ad8c3a6d23ad156a7e588f637112f79dfe8.zip |
Pass immutable document to parse_html.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r-- | src/components/script/script_task.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index adcbd050ee8..f28044a7102 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -947,7 +947,7 @@ impl ScriptTask { self.chan.clone(), self.compositor.dup(), self.image_cache_task.clone()).root(); - let mut document = Document::new(&*window, Some(url.clone()), HTMLDocument, None).root(); + let document = Document::new(&*window, Some(url.clone()), HTMLDocument, None).root(); window.deref().init_browser_context(&*document); with_compartment((**cx).ptr, window.reflector().get_jsobject(), || { @@ -960,7 +960,7 @@ impl ScriptTask { // // Note: We can parse the next document in parallel with any previous documents. let html_parsing_result = hubbub_html_parser::parse_html(&*page, - &mut *document, + &*document, url.clone(), self.resource_task.clone()); @@ -998,7 +998,7 @@ impl ScriptTask { } // Kick off the initial reflow of the page. - document.content_changed(); + document.deref().content_changed(); let fragment = url.fragment.as_ref().map(|ref fragment| fragment.to_string()); |