1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:07:35 +00:00

LibWeb: Let FFC parent context "handle" sizing of child FFC container

When we have nested flexbox layouts within one another, and the child
context wants to call up to the parent context and ask for help with
dimensioning the child flex container, we now simply do nothing.

As far as I can tell, this works out just fine, since the child flex
container will already be dimensioned by the flex layout algorithm.
This commit is contained in:
Andreas Kling 2022-10-04 18:57:09 +02:00
parent 97ca45d9c6
commit f5844b85ff
2 changed files with 28 additions and 5 deletions

View file

@ -23,6 +23,10 @@ public:
Box const& flex_container() const { return context_box(); }
virtual bool can_determine_size_of_child() const override;
virtual void determine_width_of_child(Box const&, AvailableSpace const&) override;
virtual void determine_height_of_child(Box const&, AvailableSpace const&) override;
private:
void dump_items() const;