mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 04:59:23 +00:00
LibWeb/CSS: Replace resolve_percentage_deprecated() with undeprecated
This commit is contained in:
parent
0dba531772
commit
995b7eb7b4
Notes:
github-actions[bot]
2025-09-24 15:36:24 +00:00
Author: https://github.com/AtkinsSJ
Commit: 995b7eb7b4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6290
Reviewed-by: https://github.com/tcl3 ✅
6 changed files with 4 additions and 13 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue