summaryrefslogtreecommitdiff
path: root/src/library/layout/grid.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-09-19 11:14:58 +0200
committerLaurenz <laurmaedje@gmail.com>2022-09-19 11:16:05 +0200
commit4ec3bcee487c1567bc6551f81d4f69eee4379076 (patch)
tree84ece5a894679adbe06c43712af685c5561a83ca /src/library/layout/grid.rs
parente5f958b92161732ae46ccc66ce3d6eea213cf925 (diff)
Remove pins and memoization
Diffstat (limited to 'src/library/layout/grid.rs')
-rw-r--r--src/library/layout/grid.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/library/layout/grid.rs b/src/library/layout/grid.rs
index 5e86f3d0..93dbf97e 100644
--- a/src/library/layout/grid.rs
+++ b/src/library/layout/grid.rs
@@ -204,9 +204,7 @@ impl<'a> GridLayouter<'a> {
/// Determines the columns sizes and then layouts the grid row-by-row.
pub fn layout(mut self) -> TypResult<Vec<Frame>> {
- self.ctx.pins.freeze();
self.measure_columns()?;
- self.ctx.pins.unfreeze();
for y in 0 .. self.rows.len() {
// Skip to next region if current one is full, but only for content
@@ -372,12 +370,10 @@ impl<'a> GridLayouter<'a> {
pod.base.x = self.regions.base.x;
}
- self.ctx.pins.freeze();
let mut sizes = node
.layout(self.ctx, &pod, self.styles)?
.into_iter()
.map(|frame| frame.height());
- self.ctx.pins.unfreeze();
// For each region, we want to know the maximum height any
// column requires.