mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 04:59:23 +00:00
LibWeb/CSS: Replace resolve_time_deprecated() with resolve_time()
This commit is contained in:
parent
7428a8eb40
commit
0ff012d3f3
Notes:
github-actions[bot]
2025-09-24 15:36:45 +00:00
Author: https://github.com/AtkinsSJ
Commit: 0ff012d3f3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6290
Reviewed-by: https://github.com/tcl3 ✅
4 changed files with 2 additions and 11 deletions
|
@ -3057,14 +3057,6 @@ Optional<Resolution> CalculatedStyleValue::resolve_resolution(CalculationResolut
|
|||
return {};
|
||||
}
|
||||
|
||||
Optional<Time> CalculatedStyleValue::resolve_time_deprecated(CalculationResolutionContext const& context) const
|
||||
{
|
||||
auto result = m_calculation->resolve(context);
|
||||
if (result.type().has_value() && result.type()->matches_time(m_context.percentages_resolve_as))
|
||||
return Time::make_seconds(result.value());
|
||||
return {};
|
||||
}
|
||||
|
||||
Optional<Time> CalculatedStyleValue::resolve_time(CalculationResolutionContext const& context) const
|
||||
{
|
||||
auto result = resolve_value(context);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue