Change by Richard, reviewed by me.
authoradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Dec 2004 19:21:57 +0000 (19:21 +0000)
committeradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Dec 2004 19:21:57 +0000 (19:21 +0000)
Fix for: <rdar://problem/3923983> background image decoding prevents page with 0Kb image from finishing to load

        * khtml/misc/loader.cpp: (CachedImage::data): Added call to notifyFinished so the 0Kb image case finishes loading.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8226 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/misc/loader.cpp

index de165feb7be4d99a166b472821aa42bea9fa2801..60b810610870f4a96c96a58bbb8e0fd0b3d8c3a7 100644 (file)
@@ -1,3 +1,11 @@
+2004-12-16  Adele Amchan  <adele@apple.com>
+
+        Change by Richard, reviewed by me.
+
+       Fix for: <rdar://problem/3923983> background image decoding prevents page with 0Kb image from finishing to load
+
+        * khtml/misc/loader.cpp: (CachedImage::data): Added call to notifyFinished so the 0Kb image case finishes loading.
+
 2004-12-16  Adele Amchan  <adele@apple.com>
 
         Reviewed by Chris.
index 8a9890c2ba383dae890a066d40e48a711957b593..8a0213e291457e62d985720217f550dfa1ff6cb5 100644 (file)
@@ -1028,6 +1028,8 @@ void CachedImage::data ( QBuffer &_buffer, bool eof )
     // to perform incremental decoding.
     if (eof && !p) {
         p = new QPixmap(_buffer.buffer(), KWQResponseMIMEType(m_response));
+        if (m_decoderCallback)
+            m_decoderCallback->notifyFinished();
         canDraw = true;
     } else {
         // Always attempt to load the image incrementally.