diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2015-12-13 03:53:40 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2015-12-13 03:53:40 +0530 |
commit | e493a0655e69c1472a53708d213fd102decc59cb (patch) | |
tree | 8f1494218e2e4b11ca0a28fe3cc43080cdd59a2b /components/script/dom/xmlhttprequest.rs | |
parent | a1fb12616a29d2190baadd20d7763af1d9c02260 (diff) | |
parent | 8acb21a59460d3ba91cd04439b2087127ad0ffe7 (diff) | |
download | servo-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/dom/xmlhttprequest.rs')
-rw-r--r-- | components/script/dom/xmlhttprequest.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs index ac861de1122..ebb1ef50051 100644 --- a/components/script/dom/xmlhttprequest.rs +++ b/components/script/dom/xmlhttprequest.rs @@ -1023,7 +1023,7 @@ impl XMLHttpRequest { // This will cancel all previous timeouts let global = self.global.root(); let callback = ScheduledXHRTimeout { - xhr: Trusted::new(global.r().get_cx(), self, global.r().networking_task_source()), + xhr: Trusted::new(self, global.r().networking_task_source()), generation_id: self.generation_id.get(), }; let duration = Length::new(duration_ms as u64); @@ -1176,7 +1176,7 @@ impl XMLHttpRequest { Ok(req) => req, }; - let xhr = Trusted::new(global.get_cx(), self, global.networking_task_source()); + let xhr = Trusted::new(self, global.networking_task_source()); let context = Arc::new(Mutex::new(XHRContext { xhr: xhr, |