aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2015-12-13 03:53:40 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2015-12-13 03:53:40 +0530
commite493a0655e69c1472a53708d213fd102decc59cb (patch)
tree8f1494218e2e4b11ca0a28fe3cc43080cdd59a2b /components/script/script_task.rs
parenta1fb12616a29d2190baadd20d7763af1d9c02260 (diff)
parent8acb21a59460d3ba91cd04439b2087127ad0ffe7 (diff)
downloadservo-e493a0655e69c1472a53708d213fd102decc59cb.tar.gz
servo-e493a0655e69c1472a53708d213fd102decc59cb.zip
Auto merge of #8949 - askobara:refactoring-trusted-new, r=jdm
Remove from Trusted::new an unnecessary argument Fixes #8779 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8949) <!-- Reviewable:end -->
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();