mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:57:44 +00:00
LibWeb: Unify code for assigning vertical box model metrics in BFC
We were doing the exact same thing for both replaced and non-replaced elements, so let's share the code. :^)
This commit is contained in:
parent
00bd17034d
commit
d58f60c953
2 changed files with 29 additions and 25 deletions
|
@ -49,6 +49,8 @@ private:
|
|||
void layout_block_level_children(BlockContainer&, LayoutMode);
|
||||
void layout_inline_children(BlockContainer&, LayoutMode);
|
||||
|
||||
void compute_vertical_box_model_metrics(Box& child_box, BlockContainer const& containing_block);
|
||||
|
||||
void place_block_level_replaced_element_in_normal_flow(Box& child, BlockContainer const&);
|
||||
void place_block_level_non_replaced_element_in_normal_flow(Box& float_side, BlockContainer const&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue