LibWeb: Never claim "rendering opportunity" for SVG-as-image documents

Since we drive painting for SVG-as-image manually anyway, there's no
need for them to say they are "ready to paint", since that just causes
unnecessary extra processing in the HTML event loop.
This commit is contained in:
Andreas Kling 2024-03-21 11:40:41 +01:00
parent 50ae3ca659
commit 8aae50f4ee
Notes: sideshowbarker 2024-07-17 06:51:40 +09:00

View File

@ -49,7 +49,7 @@ public:
virtual void request_file(FileRequest) override { }
virtual void paint(DevicePixelRect const&, Gfx::Bitmap&, Web::PaintOptions = {}) override { }
virtual void schedule_repaint() override { }
virtual bool is_ready_to_paint() const override { return true; }
virtual bool is_ready_to_paint() const override { return false; }
private:
explicit SVGPageClient(Page& host_page)