LibWeb: Remove Realm parameter from property_initial_value()

We don't need the Realm to parse a style value.

Fixes #2720
This commit is contained in:
Sam Atkins 2024-12-05 10:58:21 +00:00 committed by Alexander Kalenik
commit 2c3c821305
Notes: github-actions[bot] 2024-12-05 19:00:55 +00:00
7 changed files with 58 additions and 61 deletions

View file

@ -547,7 +547,7 @@ static WebIDL::ExceptionOr<Vector<BaseKeyframe>> process_a_keyframes_argument(JS
if (auto style_value = parser.parse_as_css_value(*property_id)) {
// Handle 'initial' here so we don't have to get the default value of the property every frame in StyleComputer
if (style_value->is_initial())
style_value = CSS::property_initial_value(realm, *property_id);
style_value = CSS::property_initial_value(*property_id);
parsed_properties.set(*property_id, *style_value);
}
}