mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
LibWeb: Remove redundant check for empty anonymous blocks
It is incorrect to skip anonymous block containers without line boxes during block auto height calculation because there might be table roots wrapped in anonymous table boxes after fixup and their height should be taken in account so leaving just condition to skip child boxes which margins are "collapsed through" (`border_box_height() == 0`) sufficient to skip anonymous blocks without lines but still consider table wrappers.
This commit is contained in:
parent
57940f4370
commit
6c5ba10bb0
1 changed files with 0 additions and 4 deletions
|
@ -413,10 +413,6 @@ CSSPixels BlockFormattingContext::compute_auto_height_for_block_level_element(Bo
|
|||
|
||||
auto const& child_box_state = m_state.get(*child_box);
|
||||
|
||||
// Ignore anonymous block containers with no lines. These don't count as in-flow block boxes.
|
||||
if (child_box->is_anonymous() && child_box->is_block_container() && child_box_state.line_boxes.is_empty())
|
||||
continue;
|
||||
|
||||
if (margins_collapse_through(*child_box, m_state)) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue