diff options
author | Anthony Ramine <nox@nox.paris> | 2019-10-11 16:43:52 +0200 |
---|---|---|
committer | Anthony Ramine <nox@nox.paris> | 2019-10-11 16:43:52 +0200 |
commit | 6345e353d4ec8d05379bb0fe4729d4e4598b44ef (patch) | |
tree | 927ea6601e22b5a61ecce6895225628d031c24d2 /components/layout_2020/flow/construct.rs | |
parent | 0e503a0e0c942b3535724674ba332ad838da2352 (diff) | |
download | servo-6345e353d4ec8d05379bb0fe4729d4e4598b44ef.tar.gz servo-6345e353d4ec8d05379bb0fe4729d4e4598b44ef.zip |
Handle inline-block as block for now in layout 2020
That makes Servo not panic when loading servo.org.
Diffstat (limited to 'components/layout_2020/flow/construct.rs')
-rw-r--r-- | components/layout_2020/flow/construct.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/components/layout_2020/flow/construct.rs b/components/layout_2020/flow/construct.rs index e0aab3ccffb..a7056f23ca9 100644 --- a/components/layout_2020/flow/construct.rs +++ b/components/layout_2020/flow/construct.rs @@ -331,7 +331,9 @@ where contents: replaced, }), Ok(non_replaced) => match display_inside { - DisplayInside::Flow => { + DisplayInside::Flow | + // TODO: Properly implement display: inline-block. + DisplayInside::FlowRoot => { // Whatever happened before, we just found an inline level element, so // all we need to do is to remember this ongoing inline level box. self.ongoing_inline_boxes_stack.push(InlineBox { @@ -350,10 +352,6 @@ where inline_box.last_fragment = true; Arc::new(InlineLevelBox::InlineBox(inline_box)) }, - DisplayInside::FlowRoot => { - // a.k.a. `inline-block` - unimplemented!() - }, DisplayInside::None | DisplayInside::Contents => panic!(":("), }, }; |