aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/servohtmlparser.rs
diff options
context:
space:
mode:
authorKeith Yeung <kungfukeith11@gmail.com>2016-04-26 16:40:40 -0400
committerMs2ger <Ms2ger@gmail.com>2016-04-28 10:52:44 +0200
commit33acb1937cb65643fc23365998d47846c2f46478 (patch)
treeef018d11af50bea792a5abe06e6b0473a49c292d /components/script/dom/servohtmlparser.rs
parentfbc575407d68a516a2b15a0d1c74150a9011aa9c (diff)
downloadservo-33acb1937cb65643fc23365998d47846c2f46478.tar.gz
servo-33acb1937cb65643fc23365998d47846c2f46478.zip
Remove extraneous script_chan parameter from Trusted::new
Diffstat (limited to 'components/script/dom/servohtmlparser.rs')
-rw-r--r--components/script/dom/servohtmlparser.rs12
1 files changed, 3 insertions, 9 deletions
diff --git a/components/script/dom/servohtmlparser.rs b/components/script/dom/servohtmlparser.rs
index 95fc19dbb25..4436d286aff 100644
--- a/components/script/dom/servohtmlparser.rs
+++ b/components/script/dom/servohtmlparser.rs
@@ -62,21 +62,17 @@ pub struct ParserContext {
id: PipelineId,
/// The subpage associated with this document.
subpage: Option<SubpageId>,
- /// The target event loop for the response notifications.
- script_chan: Box<ScriptChan + Send>,
/// The URL for this document.
url: Url,
}
impl ParserContext {
- pub fn new(id: PipelineId, subpage: Option<SubpageId>, script_chan: Box<ScriptChan + Send>,
- url: Url) -> ParserContext {
+ pub fn new(id: PipelineId, subpage: Option<SubpageId>, url: Url) -> ParserContext {
ParserContext {
parser: None,
is_synthesized_document: false,
id: id,
subpage: subpage,
- script_chan: script_chan,
url: url,
}
}
@@ -107,11 +103,9 @@ impl AsyncResponseListener for ParserContext {
let parser = parser.r();
self.parser = Some(match parser {
ParserRef::HTML(parser) => TrustedParser::HTML(
- Trusted::new(parser,
- self.script_chan.clone())),
+ Trusted::new(parser)),
ParserRef::XML(parser) => TrustedParser::XML(
- Trusted::new(parser,
- self.script_chan.clone())),
+ Trusted::new(parser)),
});
match content_type {