소스 검색

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.
Andreas Kling 5 년 전
부모
커밋
b750843797
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      Libraries/LibWeb/DOM/HTMLImageElement.cpp

+ 0 - 1
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) {