aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/servohtmlparser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/servohtmlparser.rs')
-rw-r--r--components/script/dom/servohtmlparser.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/servohtmlparser.rs b/components/script/dom/servohtmlparser.rs
index 82ed85a9a9c..26588986016 100644
--- a/components/script/dom/servohtmlparser.rs
+++ b/components/script/dom/servohtmlparser.rs
@@ -249,13 +249,13 @@ impl AsyncResponseListener for ParserContext {
};
let parser = parser.r();
- let win = parser.window();
self.parser = Some(match parser {
ParserRef::HTML(parser) => TrustedParser::HTML(
- Trusted::new(win.get_cx(),
- parser,
- self.script_chan.clone())),
- ParserRef::XML(parser) => TrustedParser::XML(Trusted::new(win.get_cx(), parser, self.script_chan.clone())),
+ Trusted::new(parser,
+ self.script_chan.clone())),
+ ParserRef::XML(parser) => TrustedParser::XML(
+ Trusted::new(parser,
+ self.script_chan.clone())),
});
match content_type {