LibWeb: Add the computed "display" values to CSS::ComputedValues

This commit is contained in:
Andreas Kling 2021-01-07 14:41:50 +01:00
commit fe9de4b55c
Notes: sideshowbarker 2024-07-19 00:03:42 +09:00
3 changed files with 7 additions and 0 deletions

View file

@ -237,6 +237,8 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style)
m_background_image = static_ptr_cast<CSS::ImageStyleValue>(bgimage.value());
}
computed_values.set_display(specified_style.display());
auto position = specified_style.position();
if (position.has_value())
computed_values.set_position(position.value());