diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-13 23:25:59 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-13 23:56:26 +0200 |
commit | 1e832dd91afb15ed1d028a5b96717bd98a23573b (patch) | |
tree | b5ba8cf32ddf828d1bc4cd4e5180ee670fa33fed /Userland/Libraries/LibWeb | |
parent | d37e5dc64c30f32f1612da2b50cb42610ab5dc7f (diff) | |
download | serenity-1e832dd91afb15ed1d028a5b96717bd98a23573b.zip |
LibWeb: Add CSS::FlexBasisData::is_definite()
This will allow some more expressive code in FlexFormattingContext.
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/ComputedValues.h | 2 |
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 { |