LibWeb: Pass AbstractElement in ComputationContext

Passing the `AbstractElement` rather than the
`TreeCountingFunctionResolutionContext` allows us to only compute the
resolution context when necessary (i.e. when we actually need to resolve
a tree counting function)
This commit is contained in:
Callum Law
2025-10-22 00:06:38 +13:00
committed by Jelle Raaijmakers
parent a4184fda1f
commit 5b9a36b172
Notes: github-actions[bot] 2025-10-21 23:02:05 +00:00
9 changed files with 28 additions and 31 deletions

View File

@@ -30,7 +30,7 @@ public:
virtual String to_string(SerializationMode) const override;
size_t resolve(TreeCountingFunctionResolutionContext const&, PropertyComputationDependencies&) const;
size_t resolve(DOM::AbstractElement const&, PropertyComputationDependencies&) const;
virtual RefPtr<CalculationNode const> resolve_to_calculation_node(CalculationContext const&, CalculationResolutionContext const&, PropertyComputationDependencies*) const override;
virtual ValueComparingNonnullRefPtr<StyleValue const> absolutized(ComputationContext const&, PropertyComputationDependencies&) const override;