From d6371fe8961e59852829a183b70450e32b2961b3 Mon Sep 17 00:00:00 2001 From: Callum Law Date: Sat, 29 Nov 2025 16:05:02 +1300 Subject: [PATCH] LibWeb: Simplify `parse_coordinating_value_list_shorthand` --- Libraries/LibWeb/CSS/Parser/PropertyParsing.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Libraries/LibWeb/CSS/Parser/PropertyParsing.cpp b/Libraries/LibWeb/CSS/Parser/PropertyParsing.cpp index 7cdffb387b5..529cba3bc64 100644 --- a/Libraries/LibWeb/CSS/Parser/PropertyParsing.cpp +++ b/Libraries/LibWeb/CSS/Parser/PropertyParsing.cpp @@ -126,12 +126,7 @@ RefPtr Parser::parse_coordinating_value_list_shorthand(TokenSt for (auto const& longhand_id : longhand_ids) longhand_vectors.ensure(longhand_id).append(*parsed_values.get(longhand_id).value_or_lazy_evaluated([&]() -> ValueComparingNonnullRefPtr { - auto initial_value = property_initial_value(longhand_id); - - if (initial_value->is_value_list()) - return initial_value->as_value_list().values()[0]; - - return initial_value; + return property_initial_value(longhand_id)->as_value_list().values()[0]; })); if (tokens.has_next_token()) {