mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +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:
committed by
Andreas Kling
parent
81527f5eba
commit
21c9825caf
@@ -173,7 +173,7 @@ void ImageStyleValue::resource_did_load()
|
||||
}
|
||||
|
||||
ValueListStyleValue::ValueListStyleValue(Vector<StyleComponentValueRule>&& values)
|
||||
: StyleValue(Type::ValueList)
|
||||
: StyleValue(Type::ComponentValueList)
|
||||
, m_values(move(values))
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user