1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

LibWeb: Implement new StyleValueList

StyleValueList is a list of StyleValues of the same type, for use in
properties like `margin` which accept a variable number of arguments.

I had originally hoped to simply swap the old ValueListStyleValue from
being a list of ComponentValues to one of StyleValues, but I can see now
that I will need to have both for a little while, so renamed the old
is_value_list() to is_component_value_list() temporarily.
This commit is contained in:
Sam Atkins 2021-08-06 11:02:42 +01:00 committed by Andreas Kling
parent 81527f5eba
commit 21c9825caf
3 changed files with 50 additions and 19 deletions

View file

@ -173,7 +173,7 @@ void ImageStyleValue::resource_did_load()
}
ValueListStyleValue::ValueListStyleValue(Vector<StyleComponentValueRule>&& values)
: StyleValue(Type::ValueList)
: StyleValue(Type::ComponentValueList)
, m_values(move(values))
{
}