mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 08:18:12 +00:00
LibWeb: Make flexbox special definite size cases explicit
The CSS-FLEXBOX-1 spec has a bunch of special cases where sizes are considered definite after reaching a specific point of the layout algorithm. Before this change, we were relying on set_content_width/height also implicitly marking those content sizes as definite. To prepare for that implicit behavior going away, this patch makes the special cases explicit.
This commit is contained in:
parent
5a995e95e3
commit
b079f4d590
2 changed files with 27 additions and 0 deletions
|
@ -159,6 +159,9 @@ private:
|
|||
void set_main_axis_first_margin(FlexItem&, CSSPixels margin);
|
||||
void set_main_axis_second_margin(FlexItem&, CSSPixels margin);
|
||||
|
||||
void set_has_definite_main_size(FlexItem&);
|
||||
void set_has_definite_cross_size(FlexItem&);
|
||||
|
||||
void copy_dimensions_from_flex_items_to_boxes();
|
||||
|
||||
void generate_anonymous_flex_items();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue