mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 14:25:08 +00:00
LibWeb: Dimension inline-block and replaced boxes during splitting
Don't wait until fragment layout to compute width/height of boxes on the line, just do it while we're splitting into lines.
This commit is contained in:
parent
4a9dcd974a
commit
23f70535e2
4 changed files with 6 additions and 10 deletions
|
@ -177,9 +177,6 @@ void InlineFormattingContext::run(Box&, LayoutMode layout_mode)
|
|||
line_box.fragments()[j].set_offset(offset);
|
||||
}
|
||||
}
|
||||
|
||||
if (is<Box>(fragment.layout_node()))
|
||||
dimension_box_on_line(downcast<Box>(fragment.layout_node()), layout_mode);
|
||||
}
|
||||
|
||||
if (!line_box.fragments().is_empty()) {
|
||||
|
@ -236,7 +233,6 @@ void InlineFormattingContext::dimension_box_on_line(Box& box, LayoutMode layout_
|
|||
} else {
|
||||
inline_block.set_width(inline_block.style().width().resolved_or_zero(inline_block, containing_block().width()).to_px(inline_block));
|
||||
}
|
||||
|
||||
layout_inside(inline_block, layout_mode);
|
||||
|
||||
if (inline_block.style().height().is_undefined_or_auto()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue