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:
parent
9ef5d46277
commit
fbd760379a
4 changed files with 12 additions and 32 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue