mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
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:
committed by
Andreas Kling
parent
a0cd6dd607
commit
9cbd8a82c7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user