LibWeb: Add CSS::FlexBasisData::is_definite()

This will allow some more expressive code in FlexFormattingContext.
This commit is contained in:
Andreas Kling 2021-10-13 23:25:59 +02:00
commit 1e832dd91a
Notes: sideshowbarker 2024-07-18 02:46:09 +09:00

View file

@ -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 {