浏览代码

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.
Andreas Kling 1 年之前
父节点
当前提交
8aae50f4ee
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Libraries/LibWeb/SVG/SVGDecodedImageData.cpp

+ 1 - 1
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)