2020: define DisplayInside and DisplayOutside enums separately from Stylo

This commit is contained in:
Simon Sapin 2019-10-23 17:59:06 +02:00
parent 8f89f59329
commit 22f5e07765
4 changed files with 36 additions and 22 deletions

View file

@ -38,11 +38,10 @@ use crate::flow::{BlockFormattingContext, FlowChildren};
use crate::geom::flow_relative::Vec2;
use crate::positioned::AbsolutelyPositionedFragment;
use crate::replaced::ReplacedContent;
use crate::style_ext::{ComputedValuesExt, Direction, Position, WritingMode};
use crate::style_ext::{ComputedValuesExt, Direction, DisplayInside, Position, WritingMode};
use servo_arc::Arc;
use std::convert::TryInto;
use style::context::SharedStyleContext;
use style::values::specified::box_::DisplayInside;
/// https://drafts.csswg.org/css-display/#independent-formatting-context
#[derive(Debug)]
@ -74,7 +73,6 @@ impl IndependentFormattingContext {
non_replaced,
))
},
DisplayInside::None | DisplayInside::Contents => panic!(":("),
},
Err(replaced) => IndependentFormattingContext::Replaced(replaced),
}