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,7 +36,8 @@ use std::sync::mpsc::{Receiver, Sender};
// Here to remove the compositor -> layout dependency
pub trait LayoutThreadFactory {
type Message;
fn create(id: PipelineId,
fn create(
id: PipelineId,
top_level_browsing_context_id: TopLevelBrowsingContextId,
url: ServoUrl,
is_iframe: bool,
@ -52,5 +53,6 @@ pub trait LayoutThreadFactory {
webrender_api_sender: webrender_api::RenderApiSender,
webrender_document: webrender_api::DocumentId,
layout_threads: usize,
paint_time_metrics: PaintTimeMetrics);
paint_time_metrics: PaintTimeMetrics,
);
}