1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:58:11 +00:00

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
parent 96f34d26c9
commit 025d3b49ab

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();
}