mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-27 18:40:00 +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
|
|
@ -157,10 +157,6 @@ struct ColorResolutionContext {
|
|||
[[nodiscard]] static ColorResolutionContext for_layout_node_with_style(Layout::NodeWithStyle const&);
|
||||
};
|
||||
|
||||
struct PropertyComputationDependencies {
|
||||
bool tree_counting_function : 1 { false };
|
||||
};
|
||||
|
||||
class WEB_API StyleValue : public RefCounted<StyleValue> {
|
||||
public:
|
||||
virtual ~StyleValue() = default;
|
||||
|
|
@ -208,7 +204,7 @@ public:
|
|||
bool has_auto() const;
|
||||
virtual bool has_color() const { return false; }
|
||||
|
||||
virtual ValueComparingNonnullRefPtr<StyleValue const> absolutized(ComputationContext const&, PropertyComputationDependencies&) const;
|
||||
virtual ValueComparingNonnullRefPtr<StyleValue const> absolutized(ComputationContext const&) const;
|
||||
|
||||
virtual Optional<Color> to_color(ColorResolutionContext) const { return {}; }
|
||||
Keyword to_keyword() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue