1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:48:14 +00:00

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

This commit is contained in:
Andreas Kling 2021-01-07 14:41:50 +01:00
parent f655a60773
commit fe9de4b55c
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());