mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-22 16:09:23 +00:00
LibWeb: Don't pass unnecessary PropertyComputationDependencies struct
Since we now have access to the `AbstractElement` through the `ComputationContext` we can just set the flag that this element relies on tree counting functions directly, no need to pass this struct around.
This commit is contained in:
parent
5b9a36b172
commit
f49cf75d44
Notes:
github-actions[bot]
2025-10-21 23:01:59 +00:00
Author: https://github.com/Calme1709
Commit: f49cf75d44
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6526
Reviewed-by: https://github.com/gmta ✅
40 changed files with 200 additions and 249 deletions
|
@ -30,18 +30,18 @@ String CursorStyleValue::to_string(SerializationMode mode) const
|
|||
return builder.to_string_without_validation();
|
||||
}
|
||||
|
||||
ValueComparingNonnullRefPtr<StyleValue const> CursorStyleValue::absolutized(ComputationContext const& computation_context, PropertyComputationDependencies& property_computation_dependencies) const
|
||||
ValueComparingNonnullRefPtr<StyleValue const> CursorStyleValue::absolutized(ComputationContext const& computation_context) const
|
||||
{
|
||||
RefPtr<StyleValue const> absolutized_x;
|
||||
RefPtr<StyleValue const> absolutized_y;
|
||||
|
||||
if (m_properties.x)
|
||||
absolutized_x = m_properties.x->absolutized(computation_context, property_computation_dependencies);
|
||||
absolutized_x = m_properties.x->absolutized(computation_context);
|
||||
|
||||
if (m_properties.y)
|
||||
absolutized_y = m_properties.y->absolutized(computation_context, property_computation_dependencies);
|
||||
absolutized_y = m_properties.y->absolutized(computation_context);
|
||||
|
||||
return CursorStyleValue::create(m_properties.image->absolutized(computation_context, property_computation_dependencies)->as_abstract_image(), absolutized_x, absolutized_y);
|
||||
return CursorStyleValue::create(m_properties.image->absolutized(computation_context)->as_abstract_image(), absolutized_x, absolutized_y);
|
||||
}
|
||||
|
||||
Optional<Gfx::ImageCursor> CursorStyleValue::make_image_cursor(Layout::NodeWithStyle const& layout_node) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue