mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 21:26:22 +00:00
LibWeb/CSS: Use proper parsing_params
in CSS.registerProperty
This commit is contained in:
parent
190745fd58
commit
7dc41b52db
Notes:
github-actions[bot]
2025-08-04 10:10:00 +00:00
Author: https://github.com/Norbiros
Commit: 7dc41b52db
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5638
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue