summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-07-20 19:06:47 +0200
committerAndreas Kling <kling@serenityos.org>2022-07-26 01:53:41 +0200
commit60ac258a4850f91a901af5e4c3097596b422ca4d (patch)
tree27fa08daa4709fd4705cf6425f166b464aa0c3b9 /Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h
parent83bb16ede3543771985afa3dab83c567257c2432 (diff)
downloadserenity-60ac258a4850f91a901af5e4c3097596b422ca4d.zip
LibWeb: Mark flex item cross sizes as definite when spec asks us to
The CSS-FLEXBOX-1 spec gives us two situations in which flex item cross sizes should be considered definite. Both of them happen *during* flex layout, which is super finicky but it is what it is.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h')
-rw-r--r--Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h
index 452149a384..d40645a56c 100644
--- a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h
+++ b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.h
@@ -106,6 +106,8 @@ private:
Optional<float> transferred_size_suggestion(FlexItem const&) const;
float content_size_suggestion(FlexItem const&) const;
+ bool flex_item_is_stretched(FlexItem const&) const;
+
void set_main_size(Box const&, float size);
void set_cross_size(Box const&, float size);
void set_has_definite_main_size(Box const&, bool);