From c2749f761591b462ceeccf4a42b9ac75d8addf85 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 22 Nov 2022 20:52:58 +0100 Subject: More sensible `LayoutRoot` --- src/model/items.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/model') diff --git a/src/model/items.rs b/src/model/items.rs index 21d45b67..771756fe 100644 --- a/src/model/items.rs +++ b/src/model/items.rs @@ -42,8 +42,11 @@ macro_rules! item { #[derive(Copy, Clone)] pub struct LangItems { /// The root layout function. - pub root: - fn(world: Tracked, document: &Content) -> SourceResult>, + pub root: fn( + content: &Content, + world: Tracked, + styles: StyleChain, + ) -> SourceResult>, /// Access the em size. pub em: fn(StyleChain) -> Abs, /// Access the text direction. -- cgit v1.2.3