diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2019-09-09 19:23:36 +0200 |
---|---|---|
committer | Anthony Ramine <nox@nox.paris> | 2019-09-11 10:06:35 +0200 |
commit | 86904757e66285412de162483f3ba2a6db35403e (patch) | |
tree | 8fa6e2682aaa3e63ff684a38750b44f1bec9bea5 /components/layout_2020/element_data.rs | |
parent | be0e84b30f5b3ffa708b81348e66748ec43dfc8a (diff) | |
download | servo-86904757e66285412de162483f3ba2a6db35403e.tar.gz servo-86904757e66285412de162483f3ba2a6db35403e.zip |
Import files from Victor
https://github.com/SimonSapin/victor/tree/fdb11f3e87f6d2d59170d10169fa6deb94e53b94
Diffstat (limited to 'components/layout_2020/element_data.rs')
-rw-r--r-- | components/layout_2020/element_data.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/components/layout_2020/element_data.rs b/components/layout_2020/element_data.rs new file mode 100644 index 00000000000..bda0d3cbe9e --- /dev/null +++ b/components/layout_2020/element_data.rs @@ -0,0 +1,19 @@ +use super::*; + +#[derive(Default)] +pub(crate) struct LayoutDataForElement { + pub(super) self_box: Option<LayoutBox>, + pub(super) pseudo_elements: Option<Box<PseudoElementBoxes>>, +} + +#[derive(Default)] +pub(super) struct PseudoElementBoxes { + pub before: Option<LayoutBox>, + pub after: Option<LayoutBox>, +} + +pub(super) enum LayoutBox { + DisplayContents, + BlockLevel(Arc<BlockLevelBox>), + InlineLevel(Arc<InlineLevelBox>), +} |