mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 15:43:20 +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
|
@ -191,7 +191,7 @@ Parser::ParseErrorOr<NonnullRefPtr<StyleValue const>> Parser::parse_descriptor_v
|
|||
}
|
||||
// All calculations in descriptors must be resolvable at parse-time.
|
||||
if (percentage_value->is_calculated()) {
|
||||
auto percentage = percentage_value->as_calculated().resolve_percentage_deprecated({});
|
||||
auto percentage = percentage_value->as_calculated().resolve_percentage({});
|
||||
if (percentage.has_value() && percentage->value() >= 0)
|
||||
return PercentageStyleValue::create(percentage.release_value());
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue