From 7dc41b52dbe96b2745c950f3d228ec2acaa70fef Mon Sep 17 00:00:00 2001 From: norbiros Date: Tue, 29 Jul 2025 11:20:34 +0200 Subject: [PATCH] LibWeb/CSS: Use proper `parsing_params` in `CSS.registerProperty` --- Libraries/LibWeb/CSS/CSS.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/LibWeb/CSS/CSS.cpp b/Libraries/LibWeb/CSS/CSS.cpp index cc55083f188..6fb6d467d8b 100644 --- a/Libraries/LibWeb/CSS/CSS.cpp +++ b/Libraries/LibWeb/CSS/CSS.cpp @@ -112,10 +112,10 @@ WebIDL::ExceptionOr register_property(JS::VM& vm, PropertyDefinition defin return WebIDL::SyntaxError::create(realm, "Initial value must be provided for non-universal syntax"_string); } else { // Otherwise, parse initialValue according to syntax definition. - auto initial_value_component_values = parse_component_values_list(CSS::Parser::ParsingParams {}, definition.initial_value.value()); + auto initial_value_component_values = parse_component_values_list(parsing_params, definition.initial_value.value()); initial_value_maybe = Parser::parse_with_a_syntax( - Parser::ParsingParams { realm }, + parsing_params, initial_value_component_values, *maybe_syntax);