diff options
author | Pyfisch <pyfisch@gmail.com> | 2018-09-05 10:16:52 +0200 |
---|---|---|
committer | Pyfisch <pyfisch@gmail.com> | 2018-09-05 10:16:52 +0200 |
commit | 7566906f34868d26887e6a33f242a0ba481e09b0 (patch) | |
tree | 40e7844ac66ae111d386dd6a8e2076cfe78bece8 /components/layout_traits/lib.rs | |
parent | 41a2010ee776e6bbd441b855f24d5a0d21412fd0 (diff) | |
download | servo-7566906f34868d26887e6a33f242a0ba481e09b0.tar.gz servo-7566906f34868d26887e6a33f242a0ba481e09b0.zip |
Rustfmt layout_traits crate
Diffstat (limited to 'components/layout_traits/lib.rs')
-rw-r--r-- | components/layout_traits/lib.rs | 36 |
1 files 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<Self::Message>, Receiver<Self::Message>), - pipeline_port: IpcReceiver<LayoutControlMsg>, - constellation_chan: IpcSender<ConstellationMsg>, - script_chan: IpcSender<ConstellationControlMsg>, - image_cache: Arc<ImageCache>, - font_cache_thread: FontCacheThread, - time_profiler_chan: time::ProfilerChan, - mem_profiler_chan: mem::ProfilerChan, - content_process_shutdown_chan: Option<IpcSender<()>>, - 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<Self::Message>, Receiver<Self::Message>), + pipeline_port: IpcReceiver<LayoutControlMsg>, + constellation_chan: IpcSender<ConstellationMsg>, + script_chan: IpcSender<ConstellationControlMsg>, + image_cache: Arc<ImageCache>, + font_cache_thread: FontCacheThread, + time_profiler_chan: time::ProfilerChan, + mem_profiler_chan: mem::ProfilerChan, + content_process_shutdown_chan: Option<IpcSender<()>>, + webrender_api_sender: webrender_api::RenderApiSender, + webrender_document: webrender_api::DocumentId, + layout_threads: usize, + paint_time_metrics: PaintTimeMetrics, + ); } |