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
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

@ -3029,14 +3029,6 @@ Optional<Length> CalculatedStyleValue::resolve_length(CalculationResolutionConte
return {};
}
Optional<Percentage> CalculatedStyleValue::resolve_percentage_deprecated(CalculationResolutionContext const& context) const
{
auto result = m_calculation->resolve(context);
if (result.type().has_value() && result.type()->matches_percentage())
return Percentage { result.value() };
return {};
}
Optional<Percentage> CalculatedStyleValue::resolve_percentage(CalculationResolutionContext const& context) const
{
auto result = resolve_value(context);