LibHTML: Make "display: inline-block" generate a LayoutBlock for now

We're gonna need some more smarts for this, but this at least gives
us something instead of an assertion.
This commit is contained in:
Andreas Kling 2019-10-19 19:02:02 +02:00
commit 025d3b49ab
Notes: sideshowbarker 2024-07-19 11:38:14 +09:00

View file

@ -94,6 +94,8 @@ RefPtr<LayoutNode> Element::create_layout_node(const StyleProperties* parent_sty
return adopt(*new LayoutTableRow(*this, move(style)));
if (display == "table-cell")
return adopt(*new LayoutTableCell(*this, move(style)));
if (display == "inline-block")
return adopt(*new LayoutBlock(this, move(style)));
ASSERT_NOT_REACHED();
}