summaryrefslogtreecommitdiff
path: root/library/src/graphics
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-09 22:49:25 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-09 22:49:25 +0100
commitd9ce194fe71076314955dd25896f64d48bccd6e5 (patch)
tree1f81453d8f2bd0701863c18c4a742e89510d4375 /library/src/graphics
parent010cc2effc2fd0e1c4e52d5c914cb4d74506bc0a (diff)
Remove role applications
Diffstat (limited to 'library/src/graphics')
-rw-r--r--library/src/graphics/shape.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/library/src/graphics/shape.rs b/library/src/graphics/shape.rs
index d980b64a..be67532a 100644
--- a/library/src/graphics/shape.rs
+++ b/library/src/graphics/shape.rs
@@ -92,10 +92,6 @@ impl<const S: ShapeKind> LayoutInline for ShapeNode<S> {
let mut pod = Regions::one(regions.first, regions.base, regions.expand);
frames = child.layout_inline(world, &pod, styles)?;
- for frame in frames.iter_mut() {
- frame.apply_role(Role::GenericBlock);
- }
-
// Relayout with full expansion into square region to make sure
// the result is really a square or circle.
if is_quadratic(S) {