mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb/CSS: Replace resolve_length_deprecated() with resolve_length()
This commit is contained in:
committed by
Tim Ledbetter
parent
995b7eb7b4
commit
0314606c73
Notes:
github-actions[bot]
2025-09-24 15:36:17 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/0314606c737 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6290 Reviewed-by: https://github.com/tcl3 ✅
@@ -3011,14 +3011,6 @@ Optional<Frequency> CalculatedStyleValue::resolve_frequency(CalculationResolutio
|
||||
return {};
|
||||
}
|
||||
|
||||
Optional<Length> CalculatedStyleValue::resolve_length_deprecated(CalculationResolutionContext const& context) const
|
||||
{
|
||||
auto result = m_calculation->resolve(context);
|
||||
if (result.type().has_value() && result.type()->matches_length(m_context.percentages_resolve_as))
|
||||
return Length::make_px(result.value());
|
||||
return {};
|
||||
}
|
||||
|
||||
Optional<Length> CalculatedStyleValue::resolve_length(CalculationResolutionContext const& context) const
|
||||
{
|
||||
auto result = resolve_value(context);
|
||||
|
||||
Reference in New Issue
Block a user