diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-02 13:17:07 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-02 13:21:36 +0100 |
| commit | 5110a41de1ca2236739ace2d37a1af912bb029f1 (patch) | |
| tree | 22cc223140052bd7ec10798f5ecbffaae7c934a8 /library/src/layout/container.rs | |
| parent | 33ab1fdbdda4e95e48b767a3f7f8f66413b6de0e (diff) | |
Introduce virtual typesetter
Diffstat (limited to 'library/src/layout/container.rs')
| -rw-r--r-- | library/src/layout/container.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/src/layout/container.rs b/library/src/layout/container.rs index a77e0249..5790aae6 100644 --- a/library/src/layout/container.rs +++ b/library/src/layout/container.rs @@ -23,7 +23,7 @@ impl BoxNode { impl Layout for BoxNode { fn layout( &self, - world: Tracked<dyn World>, + vt: &mut Vt, styles: StyleChain, regions: &Regions, ) -> SourceResult<Fragment> { @@ -47,7 +47,7 @@ impl Layout for BoxNode { }; // Layout the child. - let mut frame = self.child.layout(world, styles, &pod)?.into_frame(); + let mut frame = self.child.layout(vt, styles, &pod)?.into_frame(); // Ensure frame size matches regions size if expansion is on. let target = regions.expand.select(regions.first, frame.size()); @@ -95,10 +95,10 @@ impl BlockNode { impl Layout for BlockNode { fn layout( &self, - world: Tracked<dyn World>, + vt: &mut Vt, styles: StyleChain, regions: &Regions, ) -> SourceResult<Fragment> { - self.0.layout(world, styles, regions) + self.0.layout(vt, styles, regions) } } |
