mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
LibWeb: Add FFC helpers for resolving definite main/cross sizes
Although something has a definite size, we may still have to "resolve" it, since FFC is quite liberal in what it considers to be definite. Let's put that logic in a set of helper functions.
This commit is contained in:
parent
5c8e7217f7
commit
e4eb6d4f1f
2 changed files with 26 additions and 0 deletions
|
@ -59,6 +59,8 @@ private:
|
|||
bool has_definite_cross_size(Box const&) const;
|
||||
float specified_main_size(Box const&) const;
|
||||
float specified_cross_size(Box const&) const;
|
||||
float resolved_definite_main_size(Box const&) const;
|
||||
float resolved_definite_cross_size(Box const&) const;
|
||||
bool has_main_min_size(Box const&) const;
|
||||
bool has_cross_min_size(Box const&) const;
|
||||
float specified_main_max_size(Box const&) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue