diff options
author | Tobias Christiansen <tobi@tobyase.de> | 2021-05-30 20:22:25 +0200 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-06-06 01:46:06 +0430 |
commit | ae61e9ded20638f3fadcdb25dc0210d1dba116dc (patch) | |
tree | 8596d3452dcb96fbc8e4a28d359d7fccbf9b4b55 /Userland/Libraries/LibWeb/Layout/Node.cpp | |
parent | af4d80af4d85dd469b852bad9b8b1daca2a0d9c5 (diff) | |
download | serenity-ae61e9ded20638f3fadcdb25dc0210d1dba116dc.zip |
LibWeb: Add flex-grow and flex-shrink
They get parsed and are available to the programmer of Layouts :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/Node.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/Node.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/Node.cpp b/Userland/Libraries/LibWeb/Layout/Node.cpp index 2142b0a24d..3b167b6ba1 100644 --- a/Userland/Libraries/LibWeb/Layout/Node.cpp +++ b/Userland/Libraries/LibWeb/Layout/Node.cpp @@ -267,6 +267,9 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style) if (flex_basis.has_value()) computed_values.set_flex_basis(flex_basis.value()); + computed_values.set_flex_grow_factor(specified_style.flex_grow_factor()); + computed_values.set_flex_shrink_factor(specified_style.flex_shrink_factor()); + auto position = specified_style.position(); if (position.has_value()) { computed_values.set_position(position.value()); |