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.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/components/layout_2020/flow/construct.rs b/components/layout_2020/flow/construct.rs
index 07dd6f9765b..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.