summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-02 22:03:33 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-02 22:05:29 +0200
commitb750843797e6c01ab1d937a1d2baec7788f22a6f (patch)
tree6e88d2bdc62dbd859b38d6526a60b6a376d855f8 /Libraries
parentffae239e91bf0299b785f734875d473ad40bcc9e (diff)
downloadserenity-b750843797e6c01ab1d937a1d2baec7788f22a6f.zip
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.
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibWeb/DOM/HTMLImageElement.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Libraries/LibWeb/DOM/HTMLImageElement.cpp b/Libraries/LibWeb/DOM/HTMLImageElement.cpp
index 689f9e821a..e9fa59b1ef 100644
--- a/Libraries/LibWeb/DOM/HTMLImageElement.cpp
+++ b/Libraries/LibWeb/DOM/HTMLImageElement.cpp
@@ -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) {