summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-10-13 23:25:59 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-13 23:56:26 +0200
commit1e832dd91afb15ed1d028a5b96717bd98a23573b (patch)
treeb5ba8cf32ddf828d1bc4cd4e5180ee670fa33fed /Userland/Libraries/LibWeb/CSS
parentd37e5dc64c30f32f1612da2b50cb42610ab5dc7f (diff)
downloadserenity-1e832dd91afb15ed1d028a5b96717bd98a23573b.zip
LibWeb: Add CSS::FlexBasisData::is_definite()
This will allow some more expressive code in FlexFormattingContext.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS')
-rw-r--r--Userland/Libraries/LibWeb/CSS/ComputedValues.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/ComputedValues.h b/Userland/Libraries/LibWeb/CSS/ComputedValues.h
index d9537e79cd..44ced91eb9 100644
--- a/Userland/Libraries/LibWeb/CSS/ComputedValues.h
+++ b/Userland/Libraries/LibWeb/CSS/ComputedValues.h
@@ -51,6 +51,8 @@ struct Transformation {
struct FlexBasisData {
CSS::FlexBasis type { CSS::FlexBasis::Auto };
CSS::Length length {};
+
+ bool is_definite() const { return type == CSS::FlexBasis::Length; }
};
struct BoxShadowData {