aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/flow/construct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout_2020/flow/construct.rs')
-rw-r--r--components/layout_2020/flow/construct.rs14
1 files changed, 9 insertions, 5 deletions
diff --git a/components/layout_2020/flow/construct.rs b/components/layout_2020/flow/construct.rs
index 57d7bf9dd31..e7599bc843a 100644
--- a/components/layout_2020/flow/construct.rs
+++ b/components/layout_2020/flow/construct.rs
@@ -325,10 +325,14 @@ where
contents: Contents<Node>,
) -> Arc<InlineLevelBox> {
let box_ = match contents.try_into() {
- Err(replaced) => Arc::new(InlineLevelBox::Atomic {
- style: style.clone(),
- contents: replaced,
- }),
+ Err(replaced) => Arc::new(InlineLevelBox::Atomic(
+ IndependentFormattingContext::construct(
+ self.context,
+ style.clone(),
+ display_inside,
+ <Contents<Node>>::Replaced(replaced),
+ ),
+ )),
Ok(non_replaced) => match display_inside {
DisplayInside::Flow |
// TODO: Properly implement display: inline-block.
@@ -449,7 +453,7 @@ where
let box_ = Arc::new(InlineLevelBox::OutOfFlowAbsolutelyPositionedBox(
AbsolutelyPositionedBox {
contents: IndependentFormattingContext::construct(
- unimplemented!(),
+ self.context,
style,
display_inside,
contents,