mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:27:35 +00:00
LibWeb: Move should_treat_{width,height}_as_auto() to FormattingContext
These are not specific to BFC, so let's move them up to the super class so that other layout classes can use them.
This commit is contained in:
parent
5fbe245406
commit
db318aece0
4 changed files with 15 additions and 15 deletions
|
@ -48,9 +48,6 @@ public:
|
|||
|
||||
void layout_block_level_box(Box const&, BlockContainer const&, LayoutMode, float& bottom_of_lowest_margin_box, AvailableSpace const&);
|
||||
|
||||
static bool should_treat_width_as_auto(Box const&, AvailableSpace const&);
|
||||
static bool should_treat_height_as_auto(Box const&, AvailableSpace const&);
|
||||
|
||||
virtual bool can_determine_size_of_child() const override { return true; }
|
||||
virtual void determine_width_of_child(Box const&, AvailableSpace const&) override;
|
||||
virtual void determine_height_of_child(Box const&, AvailableSpace const&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue