LibWeb: Remove Gfx::ImageDecoder from ImageLoader

We still use a Gfx::ImageDecoder for GIF images, but there's no need
for the ImageLoader object to have its own pointer to it. Just grab
the ImageDecoder from the ImageResource when needed.
This commit is contained in:
Andreas Kling 2020-06-23 13:48:32 +02:00
parent 9ef5d46277
commit fbd760379a
Notes: sideshowbarker 2024-07-19 05:25:58 +09:00
4 changed files with 12 additions and 32 deletions

View file

@ -94,9 +94,6 @@ void ImageResource::update_volatility()
return;
m_decoder = nullptr;
for_each_client([&](auto& client) {
static_cast<ImageResourceClient&>(client).resource_did_replace_decoder();
});
}
ImageResourceClient::~ImageResourceClient()