diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-08 18:44:31 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-08 19:03:23 +0100 |
| commit | e6857f810e8868d95ebe78753568016b6dea12ca (patch) | |
| tree | 1b33a10470b9dff1d3c5e36ea4fd81fdf6b114cf /library/src/layout/container.rs | |
| parent | 11c7ceb29e762f6dd1d093d9fdb57e9612a92df0 (diff) | |
Copyable regions
Diffstat (limited to 'library/src/layout/container.rs')
| -rw-r--r-- | library/src/layout/container.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/src/layout/container.rs b/library/src/layout/container.rs index 5790aae6..762a4bd5 100644 --- a/library/src/layout/container.rs +++ b/library/src/layout/container.rs @@ -25,7 +25,7 @@ impl Layout for BoxNode { &self, vt: &mut Vt, styles: StyleChain, - regions: &Regions, + regions: Regions, ) -> SourceResult<Fragment> { // The "pod" is the region into which the child will be layouted. let pod = { @@ -47,7 +47,7 @@ impl Layout for BoxNode { }; // Layout the child. - let mut frame = self.child.layout(vt, 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()); @@ -97,7 +97,7 @@ impl Layout for BlockNode { &self, vt: &mut Vt, styles: StyleChain, - regions: &Regions, + regions: Regions, ) -> SourceResult<Fragment> { self.0.layout(vt, styles, regions) } |
