diff options
author | Sam Atkins <atkinssj@gmail.com> | 2021-08-06 11:02:42 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-14 12:45:01 +0200 |
commit | 21c9825cafd25cf90084651c1ace42551f10b6b3 (patch) | |
tree | 2645c52cd76eed6c2bb6e95623fb55f9308a227b /Userland/Libraries/LibWeb/CSS/StyleValue.cpp | |
parent | 81527f5eba1268333e359749433e35b791dfdfc4 (diff) | |
download | serenity-21c9825cafd25cf90084651c1ace42551f10b6b3.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/StyleValue.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleValue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.cpp b/Userland/Libraries/LibWeb/CSS/StyleValue.cpp index 551ed1f53b..f7300c5dee 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleValue.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleValue.cpp @@ -173,7 +173,7 @@ void ImageStyleValue::resource_did_load() } ValueListStyleValue::ValueListStyleValue(Vector<StyleComponentValueRule>&& values) - : StyleValue(Type::ValueList) + : StyleValue(Type::ComponentValueList) , m_values(move(values)) { } |