mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +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
|
@ -100,7 +100,7 @@ use num_traits::ToPrimitive;
|
|||
use origin::Origin;
|
||||
use parse::{ParserRoot, ParserRef, MutNullableParserField};
|
||||
use script_runtime::ScriptChan;
|
||||
use script_thread::{MainThreadScriptChan, MainThreadScriptMsg, Runnable};
|
||||
use script_thread::{MainThreadScriptMsg, Runnable};
|
||||
use script_traits::UntrustedNodeAddress;
|
||||
use script_traits::{AnimationState, MouseButton, MouseEventType, MozBrowserEvent};
|
||||
use script_traits::{ScriptMsg as ConstellationMsg, ScriptToCompositorMsg};
|
||||
|
@ -1460,8 +1460,7 @@ impl Document {
|
|||
|
||||
update_with_current_time_ms(&self.dom_content_loaded_event_start);
|
||||
|
||||
let chan = MainThreadScriptChan(self.window().main_thread_script_chan().clone()).clone();
|
||||
let doctarget = Trusted::new(self.upcast::<EventTarget>(), chan);
|
||||
let doctarget = Trusted::new(self.upcast::<EventTarget>());
|
||||
let task_source = self.window().dom_manipulation_task_source();
|
||||
let _ = task_source.queue(DOMManipulationTask::FireEvent(
|
||||
atom!("DOMContentLoaded"), doctarget, EventBubbles::Bubbles, EventCancelable::NotCancelable));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue