mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 18:02:20 +00:00
LibWeb: Mark CalculatedStyleValue::resolve_*
methods as deprecated
The existing resolve methods are not to spec and we are working to replace them with new ones based on the `simplify_a_calculation_tree` method. These are marked as deprecated rather than replaced outright as work will need to be done on the caller side to be made compatible with the new methods, for instance the new methods can fail to resolve (e.g. if we are missing required context), where the existing methods will always resolve (albeit sometimes with an incorrect value). No functionality changes.
This commit is contained in:
parent
a13f6cdf86
commit
afa95c2815
Notes:
github-actions[bot]
2025-07-16 12:06:57 +00:00
Author: https://github.com/Calme1709
Commit: afa95c2815
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5305
Reviewed-by: https://github.com/AtkinsSJ ✅
22 changed files with 69 additions and 70 deletions
|
@ -67,7 +67,7 @@ Optional<Frequency::Type> Frequency::unit_from_name(StringView name)
|
|||
|
||||
Frequency Frequency::resolve_calculated(NonnullRefPtr<CalculatedStyleValue const> const& calculated, Layout::Node const& layout_node, Frequency const& reference_value)
|
||||
{
|
||||
return calculated->resolve_frequency(
|
||||
return calculated->resolve_frequency_deprecated(
|
||||
{
|
||||
.percentage_basis = reference_value,
|
||||
.length_resolution_context = Length::ResolutionContext::for_layout_node(layout_node),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue