summaryrefslogtreecommitdiff
path: root/src/model/items.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-22 20:52:58 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-22 21:09:20 +0100
commitc2749f761591b462ceeccf4a42b9ac75d8addf85 (patch)
treea2c51175fa996f5e59666da762b2e7d9e25b43e3 /src/model/items.rs
parentea2a1525f0fc461ec9a5dc1839aec9b66c4e1ecc (diff)
More sensible `LayoutRoot`
Diffstat (limited to 'src/model/items.rs')
-rw-r--r--src/model/items.rs7
1 files changed, 5 insertions, 2 deletions
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<dyn World>, document: &Content) -> SourceResult<Vec<Frame>>,
+ pub root: fn(
+ content: &Content,
+ world: Tracked<dyn World>,
+ styles: StyleChain,
+ ) -> SourceResult<Vec<Frame>>,
/// Access the em size.
pub em: fn(StyleChain) -> Abs,
/// Access the text direction.