mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
LibWeb: Only create one wrapper for inline content inside flex container
Due to a missing `return` statement, we were creating two anonymous wrapper blocks around each piece of inline content inside a flex container. This had no visual impact, since they ended up with 0x0 dimensions, but we were wasting a fair bit of time running layout on them.
This commit is contained in:
parent
a1ddc44c07
commit
d2b887a793
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ static Layout::Node& insertion_parent_for_inline_node(Layout::NodeWithStyle& lay
|
|||
|
||||
if (layout_parent.computed_values().display().is_flex_inside()) {
|
||||
layout_parent.append_child(layout_parent.create_anonymous_wrapper());
|
||||
return *layout_parent.last_child();
|
||||
}
|
||||
|
||||
if (!has_in_flow_block_children(layout_parent) || layout_parent.children_are_inline())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue