LibWeb/CSS: Replace resolve_percentage_deprecated() with undeprecated

This commit is contained in:
Sam Atkins 2025-09-24 14:25:03 +01:00 committed by Tim Ledbetter
parent 0dba531772
commit 995b7eb7b4
Notes: github-actions[bot] 2025-09-24 15:36:24 +00:00
6 changed files with 4 additions and 13 deletions

View file

@ -191,7 +191,7 @@ Parser::ParseErrorOr<NonnullRefPtr<StyleValue const>> Parser::parse_descriptor_v
}
// All calculations in descriptors must be resolvable at parse-time.
if (percentage_value->is_calculated()) {
auto percentage = percentage_value->as_calculated().resolve_percentage_deprecated({});
auto percentage = percentage_value->as_calculated().resolve_percentage({});
if (percentage.has_value() && percentage->value() >= 0)
return PercentageStyleValue::create(percentage.release_value());
return nullptr;