mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:57:47 +00:00
LibWeb: Add CSS::FlexBasisData::is_definite()
This will allow some more expressive code in FlexFormattingContext.
This commit is contained in:
parent
d37e5dc64c
commit
1e832dd91a
1 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,8 @@ struct Transformation {
|
||||||
struct FlexBasisData {
|
struct FlexBasisData {
|
||||||
CSS::FlexBasis type { CSS::FlexBasis::Auto };
|
CSS::FlexBasis type { CSS::FlexBasis::Auto };
|
||||||
CSS::Length length {};
|
CSS::Length length {};
|
||||||
|
|
||||||
|
bool is_definite() const { return type == CSS::FlexBasis::Length; }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct BoxShadowData {
|
struct BoxShadowData {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue