mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
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:
committed by
Jelle Raaijmakers
parent
a4184fda1f
commit
5b9a36b172
Notes:
github-actions[bot]
2025-10-21 23:02:05 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/5b9a36b1725 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6526 Reviewed-by: https://github.com/gmta ✅
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user