mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 20:45:14 +00:00
LibWeb: Remove assertion in HTMLImageElement::resource_did_load()
We might end up here with a non-null decoder if the Resource fires load callbacks again for the resource. It's harmless since we'll just get the same decoder again.
This commit is contained in:
parent
ffae239e91
commit
b750843797
Notes:
sideshowbarker
2024-07-19 05:52:42 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b750843797e
1 changed files with 0 additions and 1 deletions
|
@ -70,7 +70,6 @@ void HTMLImageElement::resource_did_load()
|
|||
|
||||
dbg() << "HTMLImageElement: Resource did load, encoded data looks tasty: " << this->src();
|
||||
|
||||
ASSERT(!m_image_decoder);
|
||||
m_image_decoder = resource()->ensure_decoder();
|
||||
|
||||
if (m_image_decoder->is_animated() && m_image_decoder->frame_count() > 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue