diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-13 22:07:55 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-13 23:56:26 +0200 |
commit | 0fd25fcbbc0131b12ec05a85d0cdda8f7e152eb6 (patch) | |
tree | 3e9b73680305642ace14a3c0a30298ed9c4fcd55 /Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h | |
parent | fa7bbc602de6a61a55d3c82807fe389046437e1e (diff) | |
download | serenity-0fd25fcbbc0131b12ec05a85d0cdda8f7e152eb6.zip |
LibWeb: Move FFC layout algorithm step 5 to a separate function
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h index c8095223fd..d8e70d42df 100644 --- a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h +++ b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h @@ -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 {}; |