LibWeb: Only require NodeWithStyle for gradient size resolution

None of the code here actually needs a NodeWithStyleAndBoxModelMetrics,
and we'll need to be able to resolve images from inside
NodeWithStyle::apply_style().
This commit is contained in:
Sam Atkins
2025-02-18 16:13:37 +00:00
committed by Andreas Kling
parent a0cd6dd607
commit 9cbd8a82c7
9 changed files with 14 additions and 14 deletions

View File

@@ -33,7 +33,7 @@ public:
}
virtual void load_any_resources(DOM::Document&) { }
virtual void resolve_for_size(Layout::NodeWithStyleAndBoxModelMetrics const&, CSSPixelSize) const { }
virtual void resolve_for_size(Layout::NodeWithStyle const&, CSSPixelSize) const { }
virtual bool is_paintable() const = 0;
virtual void paint(PaintContext& context, DevicePixelRect const& dest_rect, ImageRendering) const = 0;