summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-10-13 21:49:28 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-13 23:56:26 +0200
commit3375953918ac63767fd4495b757ab39ec670633b (patch)
tree94a7c481bee883fb6f584feaf03b6520095e9d21 /Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h
parentc19358e1576514c6006756cff31190ae2488c5c0 (diff)
downloadserenity-3375953918ac63767fd4495b757ab39ec670633b.zip
LibWeb: Move FFC layout algorithm step 3 to a separate function
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h')
-rw-r--r--Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h
index 9a4a864d3f..ff6c1ac76e 100644
--- a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h
+++ b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h
@@ -56,6 +56,9 @@ private:
};
AvailableSpace determine_available_main_and_cross_space(Box const& flex_container, bool& main_size_is_infinite, bool& main_is_constrained, bool& cross_is_constrained, float& main_min_size, float& main_max_size, float& cross_min_size, float& cross_max_size) const;
+ float layout_for_maximum_main_size(Box&);
+ void determine_flex_base_size_and_hypothetical_main_size(Box const& flex_container, FlexItem&);
+
bool is_row_layout() const { return m_flex_direction == CSS::FlexDirection::Row || m_flex_direction == CSS::FlexDirection::RowReverse; }
CSS::FlexDirection m_flex_direction {};