From 7566906f34868d26887e6a33f242a0ba481e09b0 Mon Sep 17 00:00:00 2001 From: Pyfisch Date: Wed, 5 Sep 2018 10:16:52 +0200 Subject: [PATCH] Rustfmt layout_traits crate --- components/layout_traits/lib.rs | 36 +++++++++++++++++---------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/components/layout_traits/lib.rs b/components/layout_traits/lib.rs index fe432604556..6566065e421 100644 --- a/components/layout_traits/lib.rs +++ b/components/layout_traits/lib.rs @@ -36,21 +36,23 @@ use std::sync::mpsc::{Receiver, Sender}; // Here to remove the compositor -> layout dependency pub trait LayoutThreadFactory { type Message; - fn create(id: PipelineId, - top_level_browsing_context_id: TopLevelBrowsingContextId, - url: ServoUrl, - is_iframe: bool, - chan: (Sender, Receiver), - pipeline_port: IpcReceiver, - constellation_chan: IpcSender, - script_chan: IpcSender, - image_cache: Arc, - font_cache_thread: FontCacheThread, - time_profiler_chan: time::ProfilerChan, - mem_profiler_chan: mem::ProfilerChan, - content_process_shutdown_chan: Option>, - webrender_api_sender: webrender_api::RenderApiSender, - webrender_document: webrender_api::DocumentId, - layout_threads: usize, - paint_time_metrics: PaintTimeMetrics); + fn create( + id: PipelineId, + top_level_browsing_context_id: TopLevelBrowsingContextId, + url: ServoUrl, + is_iframe: bool, + chan: (Sender, Receiver), + pipeline_port: IpcReceiver, + constellation_chan: IpcSender, + script_chan: IpcSender, + image_cache: Arc, + font_cache_thread: FontCacheThread, + time_profiler_chan: time::ProfilerChan, + mem_profiler_chan: mem::ProfilerChan, + content_process_shutdown_chan: Option>, + webrender_api_sender: webrender_api::RenderApiSender, + webrender_document: webrender_api::DocumentId, + layout_threads: usize, + paint_time_metrics: PaintTimeMetrics, + ); }