diff options
Diffstat (limited to 'library/src/structure')
| -rw-r--r-- | library/src/structure/doc.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/library/src/structure/doc.rs b/library/src/structure/doc.rs index ac12c3ab..42ad628e 100644 --- a/library/src/structure/doc.rs +++ b/library/src/structure/doc.rs @@ -1,13 +1,16 @@ -use crate::layout::PageNode; +use crate::layout::{LayoutRoot, PageNode}; use crate::prelude::*; /// A sequence of page runs. #[derive(Hash)] pub struct DocNode(pub StyleVec<PageNode>); -impl DocNode { +#[node(LayoutRoot)] +impl DocNode {} + +impl LayoutRoot for DocNode { /// Layout the document into a sequence of frames, one per page. - pub fn layout( + fn layout_root( &self, world: Tracked<dyn World>, styles: StyleChain, |
