mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 17:44:56 +09: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:
parent
b83e41c9b5
commit
5a995e95e3
Notes:
sideshowbarker
2024-07-17 02:28:18 +09:00
Author: https://github.com/awesomekling
Commit: 5a995e95e3
Pull-request: https://github.com/SerenityOS/serenity/pull/23290
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue