mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Remove extraneous script_chan parameter from Trusted::new
This commit is contained in:
parent
fbc575407d
commit
33acb1937c
15 changed files with 38 additions and 62 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue