diff options
author | Keith Yeung <kungfukeith11@gmail.com> | 2016-04-26 16:40:40 -0400 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-04-28 10:52:44 +0200 |
commit | 33acb1937cb65643fc23365998d47846c2f46478 (patch) | |
tree | ef018d11af50bea792a5abe06e6b0473a49c292d /components/script/dom/storage.rs | |
parent | fbc575407d68a516a2b15a0d1c74150a9011aa9c (diff) | |
download | servo-33acb1937cb65643fc23365998d47846c2f46478.tar.gz servo-33acb1937cb65643fc23365998d47846c2f46478.zip |
Remove extraneous script_chan parameter from Trusted::new
Diffstat (limited to 'components/script/dom/storage.rs')
-rw-r--r-- | components/script/dom/storage.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/storage.rs b/components/script/dom/storage.rs index 76e7c6a29f6..ff77402ac1e 100644 --- a/components/script/dom/storage.rs +++ b/components/script/dom/storage.rs @@ -17,7 +17,7 @@ use ipc_channel::ipc; use net_traits::storage_thread::{StorageThread, StorageThreadMsg, StorageType}; use page::IterablePage; use script_runtime::ScriptChan; -use script_thread::{MainThreadRunnable, MainThreadScriptChan, ScriptThread}; +use script_thread::{MainThreadRunnable, ScriptThread}; use task_source::dom_manipulation::DOMManipulationTask; use url::Url; use util::str::DOMString; @@ -160,8 +160,7 @@ impl Storage { let global_root = self.global(); let global_ref = global_root.r(); let task_source = global_ref.as_window().dom_manipulation_task_source(); - let chan = MainThreadScriptChan(global_ref.as_window().main_thread_script_chan().clone()).clone(); - let trusted_storage = Trusted::new(self, chan); + let trusted_storage = Trusted::new(self); task_source.queue(DOMManipulationTask::SendStorageNotification( box StorageEventRunnable::new(trusted_storage, key, old_value, new_value))).unwrap(); } |