Layout 2020 skeleton for display: flex, behind a pref

This commit is contained in:
Simon Sapin 2020-06-02 13:15:48 +02:00
parent d4f1f4641d
commit 64124f7a5e
8 changed files with 114 additions and 18 deletions

View file

@ -48,6 +48,7 @@ pub(crate) enum DisplayOutside {
pub(crate) enum DisplayInside {
Flow,
FlowRoot,
Flex,
}
/// Percentages resolved but not `auto` margins
@ -394,6 +395,7 @@ impl From<stylo::Display> for Display {
let inside = match packed.inside() {
stylo::DisplayInside::Flow => DisplayInside::Flow,
stylo::DisplayInside::FlowRoot => DisplayInside::FlowRoot,
stylo::DisplayInside::Flex => DisplayInside::Flex,
// These should not be values of DisplayInside, but oh well
stylo::DisplayInside::None => return Display::None,