diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-11-16 10:41:30 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-11-16 10:41:30 +0100 |
| commit | 0e0f340502beada1cd9ee23857f48b91a0d11a90 (patch) | |
| tree | e4e4087260720adf4bab57edeac6a3d3cb5f14cf /src/library/stack.rs | |
| parent | bc118634aca5de415d211cab38c4eaa3d3cca25f (diff) | |
Revert page and inline levels
Diffstat (limited to 'src/library/stack.rs')
| -rw-r--r-- | src/library/stack.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/stack.rs b/src/library/stack.rs index fe1deda0..46825939 100644 --- a/src/library/stack.rs +++ b/src/library/stack.rs @@ -60,7 +60,7 @@ pub struct StackNode { pub children: Vec<StackChild>, } -impl BlockLevel for StackNode { +impl Layout for StackNode { fn layout( &self, ctx: &mut LayoutContext, @@ -76,7 +76,7 @@ pub enum StackChild { /// Spacing between other nodes. Spacing(Spacing), /// Any block node and how to align it in the stack. - Node(BlockNode), + Node(PackedNode), } impl Debug for StackChild { @@ -174,8 +174,8 @@ impl<'a> StackLayouter<'a> { self.items.push(StackItem::Absolute(resolved)); } - /// Layout a block node. - fn layout_node(&mut self, ctx: &mut LayoutContext, node: &BlockNode) { + /// Layout a node. + fn layout_node(&mut self, ctx: &mut LayoutContext, node: &PackedNode) { let frames = node.layout(ctx, &self.regions); let len = frames.len(); for (i, frame) in frames.into_iter().enumerate() { |
