mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
Layout 2020 skeleton for display: flex
, behind a pref
This commit is contained in:
parent
d4f1f4641d
commit
64124f7a5e
8 changed files with 114 additions and 18 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue