aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/script_task.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2013-10-16 02:37:09 -0700
committerbors-servo <release+servo@mozilla.com>2013-10-16 02:37:09 -0700
commit509934cf65acb1061cf4b012556ff6782e3203c9 (patch)
tree4fe54c25f2996a480d55a69951dcd8ba75634e4b /src/components/script/script_task.rs
parentc9c9eec3d8cdb68f43352b777c3b138c743bc103 (diff)
parent60b6d1bb57e018526a8702bff66fce1d84644afe (diff)
downloadservo-509934cf65acb1061cf4b012556ff6782e3203c9.tar.gz
servo-509934cf65acb1061cf4b012556ff6782e3203c9.zip
auto merge of #1072 : Ms2ger/servo/crash-domparser, r=jdm
Turns out that documents without a window `fail!` a lot, because we need the `cx` all over.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r--src/components/script/script_task.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs
index ca3a04910bc..31a0bd6eb9d 100644
--- a/src/components/script/script_task.rs
+++ b/src/components/script/script_task.rs
@@ -717,7 +717,7 @@ impl ScriptTask {
// Parse HTML.
//
// Note: We can parse the next document in parallel with any previous documents.
- let document = HTMLDocument::new(Some(window));
+ let document = HTMLDocument::new(window);
let html_parsing_result = hubbub_html_parser::parse_html(cx.ptr,
document,