LibWeb/CSS: Use proper parsing_params in CSS.registerProperty

This commit is contained in:
norbiros 2025-07-29 11:20:34 +02:00 committed by Sam Atkins
commit 7dc41b52db
Notes: github-actions[bot] 2025-08-04 10:10:00 +00:00

View file

@ -112,10 +112,10 @@ WebIDL::ExceptionOr<void> register_property(JS::VM& vm, PropertyDefinition defin
return WebIDL::SyntaxError::create(realm, "Initial value must be provided for non-universal syntax"_string); return WebIDL::SyntaxError::create(realm, "Initial value must be provided for non-universal syntax"_string);
} else { } else {
// Otherwise, parse initialValue according to syntax definition. // 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( initial_value_maybe = Parser::parse_with_a_syntax(
Parser::ParsingParams { realm }, parsing_params,
initial_value_component_values, initial_value_component_values,
*maybe_syntax); *maybe_syntax);