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/flow.rs | |
| parent | bc118634aca5de415d211cab38c4eaa3d3cca25f (diff) | |
Revert page and inline levels
Diffstat (limited to 'src/library/flow.rs')
| -rw-r--r-- | src/library/flow.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/library/flow.rs b/src/library/flow.rs index cc53d520..c41fb62c 100644 --- a/src/library/flow.rs +++ b/src/library/flow.rs @@ -48,7 +48,7 @@ pub struct FlowNode { pub children: Vec<FlowChild>, } -impl BlockLevel for FlowNode { +impl Layout for FlowNode { fn layout( &self, ctx: &mut LayoutContext, @@ -63,8 +63,8 @@ impl BlockLevel for FlowNode { pub enum FlowChild { /// Vertical spacing between other children. Spacing(Spacing), - /// Any block node and how to align it in the flow. - Node(BlockNode, Align), + /// A node and how to align it in the flow. + Node(PackedNode, Align), } impl Debug for FlowChild { @@ -157,8 +157,8 @@ impl<'a> FlowLayouter<'a> { self.items.push(FlowItem::Absolute(resolved)); } - /// Layout a block node. - fn layout_node(&mut self, ctx: &mut LayoutContext, node: &BlockNode, align: Align) { + /// Layout a node. + fn layout_node(&mut self, ctx: &mut LayoutContext, node: &PackedNode, align: Align) { let frames = node.layout(ctx, &self.regions); let len = frames.len(); for (i, frame) in frames.into_iter().enumerate() { |
