Rustfmt layout_traits crate

This commit is contained in:
Pyfisch 2018-09-05 10:16:52 +02:00
parent 41a2010ee7
commit 7566906f34

View file

@ -36,21 +36,23 @@ use std::sync::mpsc::{Receiver, Sender};
// Here to remove the compositor -> layout dependency // Here to remove the compositor -> layout dependency
pub trait LayoutThreadFactory { pub trait LayoutThreadFactory {
type Message; type Message;
fn create(id: PipelineId, fn create(
top_level_browsing_context_id: TopLevelBrowsingContextId, id: PipelineId,
url: ServoUrl, top_level_browsing_context_id: TopLevelBrowsingContextId,
is_iframe: bool, url: ServoUrl,
chan: (Sender<Self::Message>, Receiver<Self::Message>), is_iframe: bool,
pipeline_port: IpcReceiver<LayoutControlMsg>, chan: (Sender<Self::Message>, Receiver<Self::Message>),
constellation_chan: IpcSender<ConstellationMsg>, pipeline_port: IpcReceiver<LayoutControlMsg>,
script_chan: IpcSender<ConstellationControlMsg>, constellation_chan: IpcSender<ConstellationMsg>,
image_cache: Arc<ImageCache>, script_chan: IpcSender<ConstellationControlMsg>,
font_cache_thread: FontCacheThread, image_cache: Arc<ImageCache>,
time_profiler_chan: time::ProfilerChan, font_cache_thread: FontCacheThread,
mem_profiler_chan: mem::ProfilerChan, time_profiler_chan: time::ProfilerChan,
content_process_shutdown_chan: Option<IpcSender<()>>, mem_profiler_chan: mem::ProfilerChan,
webrender_api_sender: webrender_api::RenderApiSender, content_process_shutdown_chan: Option<IpcSender<()>>,
webrender_document: webrender_api::DocumentId, webrender_api_sender: webrender_api::RenderApiSender,
layout_threads: usize, webrender_document: webrender_api::DocumentId,
paint_time_metrics: PaintTimeMetrics); layout_threads: usize,
paint_time_metrics: PaintTimeMetrics,
);
} }