diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-09 22:49:25 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-09 22:49:25 +0100 |
| commit | d9ce194fe71076314955dd25896f64d48bccd6e5 (patch) | |
| tree | 1f81453d8f2bd0701863c18c4a742e89510d4375 /library/src/layout/flow.rs | |
| parent | 010cc2effc2fd0e1c4e52d5c914cb4d74506bc0a (diff) | |
Remove role applications
Diffstat (limited to 'library/src/layout/flow.rs')
| -rw-r--r-- | library/src/layout/flow.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/library/src/layout/flow.rs b/library/src/layout/flow.rs index cc5dcd50..822d2c38 100644 --- a/library/src/layout/flow.rs +++ b/library/src/layout/flow.rs @@ -207,10 +207,7 @@ impl<'a> FlowLayouter<'a> { let frames = block.layout_block(world, &self.regions, styles)?; let len = frames.len(); - for (i, mut frame) in frames.into_iter().enumerate() { - // Set the generic block role. - frame.apply_role(Role::GenericBlock); - + for (i, frame) in frames.into_iter().enumerate() { // Grow our size, shrink the region and save the frame for later. let size = frame.size(); self.used.y += size.y; |
