LibWeb: Move height, min-height and max-height into LayoutStyle

This commit is contained in:
Andreas Kling 2020-06-24 16:11:15 +02:00
commit 5d86305a72
Notes: sideshowbarker 2024-07-19 05:24:31 +09:00
4 changed files with 26 additions and 17 deletions

View file

@ -229,6 +229,9 @@ void LayoutNodeWithStyle::apply_style(const StyleProperties& specified_style)
style.set_width(specified_style.length_or_fallback(CSS::PropertyID::Width, {}));
style.set_min_width(specified_style.length_or_fallback(CSS::PropertyID::MinWidth, {}));
style.set_max_width(specified_style.length_or_fallback(CSS::PropertyID::MaxWidth, {}));
style.set_height(specified_style.length_or_fallback(CSS::PropertyID::Height, {}));
style.set_min_height(specified_style.length_or_fallback(CSS::PropertyID::MinHeight, {}));
style.set_max_height(specified_style.length_or_fallback(CSS::PropertyID::MaxHeight, {}));
}
}