mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
LibWeb: Move FFC layout algorithm step 5 to a separate function
This commit is contained in:
parent
fa7bbc602d
commit
0fd25fcbbc
2 changed files with 34 additions and 22 deletions
|
@ -11,6 +11,7 @@
|
|||
namespace Web::Layout {
|
||||
|
||||
struct FlexItem;
|
||||
struct FlexLine;
|
||||
|
||||
class FlexFormattingContext final : public FormattingContext {
|
||||
public:
|
||||
|
@ -61,6 +62,8 @@ private:
|
|||
|
||||
void determine_main_size_of_flex_container(Box& flex_container, Vector<FlexItem>&, bool main_is_constrained, bool main_size_is_infinite, float& main_available_size, float main_min_size, float main_max_size);
|
||||
|
||||
Vector<FlexLine> collect_flex_items_into_flex_lines(Box const& flex_container, Vector<FlexItem>&, float main_available_size);
|
||||
|
||||
bool is_row_layout() const { return m_flex_direction == CSS::FlexDirection::Row || m_flex_direction == CSS::FlexDirection::RowReverse; }
|
||||
|
||||
CSS::FlexDirection m_flex_direction {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue