diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-06-12 17:45:52 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-06-12 20:51:31 +0200 |
| commit | 7660978ee5d842648e244e2972273264d94ca37b (patch) | |
| tree | 74e1c8bc578afa616ddcd6c4c9e79c3c3d311d78 /src/library/layout/grid.rs | |
| parent | 6e3b1a2c80428d581d00b9d65e1c45401df2e210 (diff) | |
Move `Arc` into `Frame`
Diffstat (limited to 'src/library/layout/grid.rs')
| -rw-r--r-- | src/library/layout/grid.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/layout/grid.rs b/src/library/layout/grid.rs index c04913a1..c02662a6 100644 --- a/src/library/layout/grid.rs +++ b/src/library/layout/grid.rs @@ -36,7 +36,7 @@ impl Layout for GridNode { ctx: &mut Context, regions: &Regions, styles: StyleChain, - ) -> TypResult<Vec<Arc<Frame>>> { + ) -> TypResult<Vec<Frame>> { // Prepare grid layout by unifying content and gutter tracks. let layouter = GridLayouter::new( ctx, @@ -116,7 +116,7 @@ pub struct GridLayouter<'a> { /// The sum of fractions in the current region. fr: Fraction, /// Frames for finished regions. - finished: Vec<Arc<Frame>>, + finished: Vec<Frame>, } /// Produced by initial row layout, auto and relative rows are already finished, @@ -203,7 +203,7 @@ impl<'a> GridLayouter<'a> { } /// Determines the columns sizes and then layouts the grid row-by-row. - pub fn layout(mut self) -> TypResult<Vec<Arc<Frame>>> { + pub fn layout(mut self) -> TypResult<Vec<Frame>> { self.ctx.pins.freeze(); self.measure_columns()?; self.ctx.pins.unfreeze(); @@ -567,7 +567,7 @@ impl<'a> GridLayouter<'a> { pos.y += height; } - self.finished.push(Arc::new(output)); + self.finished.push(output); self.regions.next(); self.full = self.regions.first.y; self.used.y = Length::zero(); |
