aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/element_data.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-05-08 11:46:17 +0200
committerMartin Robinson <mrobinson@igalia.com>2023-05-13 11:52:59 +0200
commit72b5fcd0b69201bd5cda125821dd90555490b45d (patch)
tree0adae6d50cdbb3f7bb7a4d2780267525fc42e2ff /components/layout_2020/element_data.rs
parentab4bd2a13347819210728e48cefb1e8c194d9138 (diff)
downloadservo-72b5fcd0b69201bd5cda125821dd90555490b45d.tar.gz
servo-72b5fcd0b69201bd5cda125821dd90555490b45d.zip
Combine DOM-related concepts in Layout 2020 into dom.rs
Diffstat (limited to 'components/layout_2020/element_data.rs')
-rw-r--r--components/layout_2020/element_data.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/components/layout_2020/element_data.rs b/components/layout_2020/element_data.rs
deleted file mode 100644
index 8963f191d6f..00000000000
--- a/components/layout_2020/element_data.rs
+++ /dev/null
@@ -1,25 +0,0 @@
-/* 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::flexbox::FlexLevelBox;
-use crate::flow::inline::InlineLevelBox;
-use crate::flow::BlockLevelBox;
-use script_layout_interface::wrapper_traits::LayoutDataTrait;
-
-#[derive(Default)]
-pub struct LayoutDataForElement {
- pub(super) self_box: ArcRefCell<Option<LayoutBox>>,
- pub(super) pseudo_before_box: ArcRefCell<Option<LayoutBox>>,
- pub(super) pseudo_after_box: ArcRefCell<Option<LayoutBox>>,
-}
-
-pub(super) enum LayoutBox {
- DisplayContents,
- BlockLevel(ArcRefCell<BlockLevelBox>),
- InlineLevel(ArcRefCell<InlineLevelBox>),
- FlexLevel(ArcRefCell<FlexLevelBox>),
-}
-
-impl LayoutDataTrait for LayoutDataForElement {}