Auto merge of #21614 - pyfisch:layout_traits-fmt, r=nox

Rustfmt layout_traits crate

Part of #21373. This is a small PR, just one function is formatted as the layout_traits crate contains only this one trait.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21614)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-09-05 07:26:29 -04:00 committed by GitHub
commit 9070d4bc65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,
);
} }