Reformat GlobalScope::new_inherited

This commit is contained in:
Anthony Ramine 2017-09-13 10:35:49 +02:00
parent 3764217ca6
commit b8ae82ffb8

View file

@ -111,24 +111,24 @@ impl GlobalScope {
scheduler_chan: IpcSender<TimerSchedulerMsg>,
resource_threads: ResourceThreads,
timer_event_chan: IpcSender<TimerEvent>,
origin: MutableOrigin)
-> Self {
GlobalScope {
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,
}
}