1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:37:45 +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:
Andreas Kling 2022-01-24 01:23:02 +01:00
parent 00bd17034d
commit d58f60c953
2 changed files with 29 additions and 25 deletions

View file

@ -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&);