Skip to content

Commit 1e832dd

Browse files
committed
LibWeb: Add CSS::FlexBasisData::is_definite()
This will allow some more expressive code in FlexFormattingContext.
1 parent d37e5dc commit 1e832dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Userland/Libraries/LibWeb/CSS/ComputedValues.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ struct Transformation {
5151
struct FlexBasisData {
5252
CSS::FlexBasis type { CSS::FlexBasis::Auto };
5353
CSS::Length length {};
54+
55+
bool is_definite() const { return type == CSS::FlexBasis::Length; }
5456
};
5557

5658
struct BoxShadowData {

0 commit comments

Comments
 (0)