mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-17 05:29:56 +00:00
LibWeb/CSS: Replace resolve_frequency_deprecated() with undeprecated
This commit is contained in:
parent
cd29111b36
commit
7f237b3e62
Notes:
github-actions[bot]
2025-09-24 15:37:01 +00:00
Author: https://github.com/AtkinsSJ
Commit: 7f237b3e62
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6290
Reviewed-by: https://github.com/tcl3 ✅
3 changed files with 1 additions and 10 deletions
|
@ -3001,14 +3001,6 @@ Optional<Flex> CalculatedStyleValue::resolve_flex(CalculationResolutionContext c
|
|||
return {};
|
||||
}
|
||||
|
||||
Optional<Frequency> CalculatedStyleValue::resolve_frequency_deprecated(CalculationResolutionContext const& context) const
|
||||
{
|
||||
auto result = m_calculation->resolve(context);
|
||||
if (result.type().has_value() && result.type()->matches_frequency(m_context.percentages_resolve_as))
|
||||
return Frequency::make_hertz(result.value());
|
||||
return {};
|
||||
}
|
||||
|
||||
Optional<Frequency> CalculatedStyleValue::resolve_frequency(CalculationResolutionContext const& context) const
|
||||
{
|
||||
auto result = resolve_value(context);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue