1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:07:34 +00:00

LibWeb: Allow block children of inlines

Hey, why not. We did all the hard work for display:inline-block already
and now we can just allow this.

This makes <a><h1>Hello friends!</h1></a> work :^)
This commit is contained in:
Andreas Kling 2020-06-15 17:38:44 +02:00
parent 96da15a8a4
commit 308c3ccc44
2 changed files with 1 additions and 7 deletions

View file

@ -587,8 +587,6 @@ LineBox& LayoutBlock::add_line_box()
void LayoutBlock::split_into_lines(LayoutBlock& container, LayoutMode layout_mode)
{
ASSERT(is_inline());
layout(layout_mode);
auto* line_box = &container.ensure_last_line_box();