mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 23:12:08 +00:00
LibWeb: More specialization of intrinsic sizing layout
This patch adds a separate entry point for this kind of layout. We override it in BFC to set up initial width/height values for the BFC root block. Resulting dimensions are assigned as content_width and content_height at the end of intrinsic sizing, for each axis, if it's either "auto" or there's a min-content or max-content constraint in effect.
This commit is contained in:
parent
28eec22c83
commit
61c27815e4
4 changed files with 39 additions and 11 deletions
|
@ -22,6 +22,7 @@ public:
|
|||
~BlockFormattingContext();
|
||||
|
||||
virtual void run(Box const&, LayoutMode) override;
|
||||
virtual void run_intrinsic_size_determination(Box const&) override;
|
||||
|
||||
bool is_initial() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue