1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:08:13 +00:00

LibWeb: Add UsedValues::set_has_definite_width/height()

These will be used to explicitly mark some box geometry as definite
at various stages of layout. It's gonna get finicky.
This commit is contained in:
Andreas Kling 2024-01-29 15:35:02 +01:00
parent b83e41c9b5
commit 5a995e95e3

View file

@ -55,6 +55,9 @@ struct LayoutState {
void set_indefinite_content_width();
void set_indefinite_content_height();
void set_has_definite_width(bool has_definite_width) { m_has_definite_width = has_definite_width; }
void set_has_definite_height(bool has_definite_height) { m_has_definite_height = has_definite_height; }
// NOTE: These are used by FlexFormattingContext to assign a temporary main size to items
// early on, so that descendants have something to resolve percentages against.
void set_temporary_content_width(CSSPixels);