From 8aae50f4eefdf361fb22694eb36eccdfa50d20b9 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 21 Mar 2024 11:40:41 +0100 Subject: [PATCH] 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. --- Userland/Libraries/LibWeb/SVG/SVGDecodedImageData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/SVG/SVGDecodedImageData.cpp b/Userland/Libraries/LibWeb/SVG/SVGDecodedImageData.cpp index 95cb61d34d..e709bba831 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGDecodedImageData.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGDecodedImageData.cpp @@ -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)