aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/flexbox/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout_2020/flexbox/mod.rs')
-rw-r--r--components/layout_2020/flexbox/mod.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/components/layout_2020/flexbox/mod.rs b/components/layout_2020/flexbox/mod.rs
new file mode 100644
index 00000000000..c7aed0bd0e9
--- /dev/null
+++ b/components/layout_2020/flexbox/mod.rs
@@ -0,0 +1,21 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
+
+use crate::cell::ArcRefCell;
+use crate::formatting_contexts::IndependentFormattingContext;
+use crate::positioned::AbsolutelyPositionedBox;
+
+mod construct;
+mod layout;
+
+#[derive(Debug, Serialize)]
+pub(crate) struct FlexContainer {
+ children: Vec<ArcRefCell<FlexLevelBox>>,
+}
+
+#[derive(Debug, Serialize)]
+pub(crate) enum FlexLevelBox {
+ FlexItem(IndependentFormattingContext),
+ OutOfFlowAbsolutelyPositionedBox(ArcRefCell<AbsolutelyPositionedBox>),
+}