1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 10:14:58 +00:00

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
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()