mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +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:
parent
81527f5eba
commit
21c9825caf
Notes:
sideshowbarker
2024-07-18 06:59:21 +09:00
Author: https://github.com/AtkinsSJ
Commit: 21c9825caf
Pull-request: https://github.com/SerenityOS/serenity/pull/9301
Reviewed-by: https://github.com/TobyAsE
3 changed files with 50 additions and 19 deletions
|
@ -173,7 +173,7 @@ void ImageStyleValue::resource_did_load()
|
|||
}
|
||||
|
||||
ValueListStyleValue::ValueListStyleValue(Vector<StyleComponentValueRule>&& values)
|
||||
: StyleValue(Type::ValueList)
|
||||
: StyleValue(Type::ComponentValueList)
|
||||
, m_values(move(values))
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue