mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 21:20:18 +00:00
LibWeb/CSS: Replace resolve_number_deprecated() with resolve_number()
This commit is contained in:
parent
d9a386fa81
commit
0dba531772
Notes:
github-actions[bot]
2025-09-24 15:36:31 +00:00
Author: https://github.com/AtkinsSJ
Commit: 0dba531772
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6290
Reviewed-by: https://github.com/tcl3 ✅
8 changed files with 6 additions and 22 deletions
|
@ -411,7 +411,7 @@ Optional<int> ComputedProperties::z_index() const
|
|||
}
|
||||
|
||||
if (value.is_calculated()) {
|
||||
auto maybe_double = value.as_calculated().resolve_number_deprecated({});
|
||||
auto maybe_double = value.as_calculated().resolve_number({});
|
||||
if (maybe_double.has_value()) {
|
||||
if (*maybe_double >= NumericLimits<int>::max())
|
||||
return NumericLimits<int>::max();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue