LibWeb: Allow ImageProvider to not have a corresponding DOM node

This is prep work for CSS content:image.
This commit is contained in:
Andreas Kling 2025-07-26 14:46:23 +02:00 committed by Andreas Kling
commit 0e94c4e270
Notes: github-actions[bot] 2025-07-28 20:48:14 +00:00
5 changed files with 5 additions and 5 deletions

View file

@ -85,7 +85,7 @@ private:
virtual Optional<CSSPixelFraction> intrinsic_aspect_ratio() const override;
virtual RefPtr<Gfx::ImmutableBitmap> current_image_bitmap(Gfx::IntSize = {}) const override;
virtual void set_visible_in_viewport(bool) override;
virtual GC::Ref<DOM::Element const> to_html_element() const override { return *this; }
virtual GC::Ptr<DOM::Element const> to_html_element() const override { return *this; }
GC::Ptr<DecodedImageData> image_data() const;