aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
authorArthur Skobara <skobara.arthur@gmail.com>2015-12-12 22:31:19 +0600
committerArthur Skobara <skobara.arthur@gmail.com>2015-12-12 22:31:19 +0600
commit8acb21a59460d3ba91cd04439b2087127ad0ffe7 (patch)
treef059895fe839da5d75492d4606942edce7dfe652 /components/script/script_task.rs
parentf4783a0ec30c74f93c161372de806309900172ca (diff)
downloadservo-8acb21a59460d3ba91cd04439b2087127ad0ffe7.tar.gz
servo-8acb21a59460d3ba91cd04439b2087127ad0ffe7.zip
Remove from Trusted::new an unnecessary argument
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r--components/script/script_task.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index 1dcf707a735..c4efab48169 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -1260,7 +1260,7 @@ impl ScriptTask {
doc.mut_loader().inhibit_events();
// https://html.spec.whatwg.org/multipage/#the-end step 7
- let addr: Trusted<Document> = Trusted::new(self.get_cx(), doc, self.chan.clone());
+ let addr: Trusted<Document> = Trusted::new(doc, self.chan.clone());
let handler = box DocumentProgressHandler::new(addr.clone());
self.chan.send(CommonScriptMsg::RunnableMsg(ScriptTaskEventCategory::DocumentEvent, handler)).unwrap();