diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-13 10:35:49 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-13 10:53:03 +0200 |
commit | b8ae82ffb832c2281b76bc100e6c0e1c40f1afb9 (patch) | |
tree | 9b7f3e580aadbd6ac52268e4af969120dc7dee6e /components/script/dom/globalscope.rs | |
parent | 3764217ca6e315781144a24270b9d124405477ee (diff) | |
download | servo-b8ae82ffb832c2281b76bc100e6c0e1c40f1afb9.tar.gz servo-b8ae82ffb832c2281b76bc100e6c0e1c40f1afb9.zip |
Reformat GlobalScope::new_inherited
Diffstat (limited to 'components/script/dom/globalscope.rs')
-rw-r--r-- | components/script/dom/globalscope.rs | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/components/script/dom/globalscope.rs b/components/script/dom/globalscope.rs index e340b90e67e..4cd2ac2b8d1 100644 --- a/components/script/dom/globalscope.rs +++ b/components/script/dom/globalscope.rs @@ -103,32 +103,32 @@ pub struct GlobalScope { impl GlobalScope { pub fn new_inherited( - pipeline_id: PipelineId, - devtools_chan: Option<IpcSender<ScriptToDevtoolsControlMsg>>, - mem_profiler_chan: mem::ProfilerChan, - time_profiler_chan: time::ProfilerChan, - script_to_constellation_chan: ScriptToConstellationChan, - scheduler_chan: IpcSender<TimerSchedulerMsg>, - resource_threads: ResourceThreads, - timer_event_chan: IpcSender<TimerEvent>, - origin: MutableOrigin) - -> Self { - GlobalScope { + pipeline_id: PipelineId, + devtools_chan: Option<IpcSender<ScriptToDevtoolsControlMsg>>, + mem_profiler_chan: mem::ProfilerChan, + time_profiler_chan: time::ProfilerChan, + script_to_constellation_chan: ScriptToConstellationChan, + scheduler_chan: IpcSender<TimerSchedulerMsg>, + resource_threads: ResourceThreads, + timer_event_chan: IpcSender<TimerEvent>, + origin: MutableOrigin, + ) -> Self { + Self { eventtarget: EventTarget::new_inherited(), crypto: Default::default(), next_worker_id: Cell::new(WorkerId(0)), - pipeline_id: pipeline_id, + pipeline_id, devtools_wants_updates: Default::default(), console_timers: DOMRefCell::new(Default::default()), - devtools_chan: devtools_chan, - mem_profiler_chan: mem_profiler_chan, - time_profiler_chan: time_profiler_chan, - script_to_constellation_chan: script_to_constellation_chan, + devtools_chan, + mem_profiler_chan, + time_profiler_chan, + script_to_constellation_chan, scheduler_chan: scheduler_chan.clone(), in_error_reporting_mode: Default::default(), - resource_threads: resource_threads, + resource_threads, timers: OneshotTimers::new(timer_event_chan, scheduler_chan), - origin: origin, + origin, } } |