aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlformelement.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/htmlformelement.rs
parentfbc575407d68a516a2b15a0d1c74150a9011aa9c (diff)
downloadservo-33acb1937cb65643fc23365998d47846c2f46478.tar.gz
servo-33acb1937cb65643fc23365998d47846c2f46478.zip
Remove extraneous script_chan parameter from Trusted::new
Diffstat (limited to 'components/script/dom/htmlformelement.rs')
-rw-r--r--components/script/dom/htmlformelement.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs
index 13c7a1200c6..999ccacc8a8 100644
--- a/components/script/dom/htmlformelement.rs
+++ b/components/script/dom/htmlformelement.rs
@@ -38,7 +38,7 @@ use hyper::method::Method;
use hyper::mime;
use msg::constellation_msg::{LoadData, PipelineId};
use script_runtime::ScriptChan;
-use script_thread::{MainThreadScriptChan, MainThreadScriptMsg, Runnable};
+use script_thread::{MainThreadScriptMsg, Runnable};
use std::borrow::ToOwned;
use std::cell::Cell;
use std::sync::mpsc::Sender;
@@ -331,13 +331,12 @@ impl HTMLFormElement {
self.generation_id.set(GenerationId(prev_id + 1));
// Step 2
- let chan = MainThreadScriptChan(window.main_thread_script_chan().clone()).clone();
let nav = box PlannedNavigation {
load_data: load_data,
pipeline_id: window.pipeline(),
script_chan: window.main_thread_script_chan().clone(),
generation_id: self.generation_id.get(),
- form: Trusted::new(self, chan)
+ form: Trusted::new(self)
};
// Step 3