aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/flexbox/construct.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-08-19 03:54:10 -0700
committerGitHub <noreply@github.com>2024-08-19 10:54:10 +0000
commit2f6745c0c68388460bde8f5167c45b6f78316cd8 (patch)
tree6a0d43df9eb617350f05b6c723c088e62e53dbc4 /components/layout_2020/flexbox/construct.rs
parent2a31fddc0b6f3ae89bd36cff3be1062e54c4a64c (diff)
downloadservo-2f6745c0c68388460bde8f5167c45b6f78316cd8.tar.gz
servo-2f6745c0c68388460bde8f5167c45b6f78316cd8.zip
layout: Layout for column flex-basis and minimum automatic size determination (#33068)
This change adds an expensive layout for the determination of minimum automatic size and flex basis in process of flexbox layout. Currently, the layout is not cached, so may be performed up to 2 more times than necessary. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'components/layout_2020/flexbox/construct.rs')
-rw-r--r--components/layout_2020/flexbox/construct.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/components/layout_2020/flexbox/construct.rs b/components/layout_2020/flexbox/construct.rs
index 6687b286064..19fca86a72e 100644
--- a/components/layout_2020/flexbox/construct.rs
+++ b/components/layout_2020/flexbox/construct.rs
@@ -229,9 +229,6 @@ where
FlexLevelBox::OutOfFlowAbsolutelyPositionedBox(_) => 0,
});
- FlexContainer {
- children,
- style: self.info.style.clone(),
- }
+ FlexContainer::new(&self.info.style, children)
}
}