1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:37:36 +00:00

LibWeb: Move FFC layout algorithm step 12 to a separate function

This commit is contained in:
Andreas Kling 2021-10-13 22:20:55 +02:00
parent 176f1ad214
commit e590e17b8a
2 changed files with 67 additions and 59 deletions

View file

@ -72,6 +72,8 @@ private:
void determine_used_cross_size_of_each_flex_item(Box const& flex_container, Vector<FlexLine>&);
void distribute_any_remaining_free_space(Box const& flex_container, Vector<FlexLine>&, 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 {};