Skip to content

Commit d6371fe

Browse files
Calme1709AtkinsSJ
authored andcommitted
LibWeb: Simplify parse_coordinating_value_list_shorthand
1 parent 51f694c commit d6371fe

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Libraries/LibWeb/CSS/Parser/PropertyParsing.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,7 @@ RefPtr<StyleValue const> Parser::parse_coordinating_value_list_shorthand(TokenSt
126126

127127
for (auto const& longhand_id : longhand_ids)
128128
longhand_vectors.ensure(longhand_id).append(*parsed_values.get(longhand_id).value_or_lazy_evaluated([&]() -> ValueComparingNonnullRefPtr<StyleValue const> {
129-
auto initial_value = property_initial_value(longhand_id);
130-
131-
if (initial_value->is_value_list())
132-
return initial_value->as_value_list().values()[0];
133-
134-
return initial_value;
129+
return property_initial_value(longhand_id)->as_value_list().values()[0];
135130
}));
136131

137132
if (tokens.has_next_token()) {

0 commit comments

Comments
 (0)