Garbage on page background while http://canberraballoons.com.au is loading
[WebKit-https.git] / Source / WebCore / platform / graphics / cg / ImageSourceCG.cpp
index 40d616ee5626001fbef9834eb85121fdfddc29ae..aaa2fdfcdc7c176c5044a0e528bcf5181927feff 100644 (file)
@@ -361,10 +361,13 @@ float ImageSource::frameDurationAtIndex(size_t index)
     return duration;
 }
 
-bool ImageSource::frameHasAlphaAtIndex(size_t)
+bool ImageSource::frameHasAlphaAtIndex(size_t index)
 {
     if (!m_decoder)
-        return false;
+        return false; // FIXME: why doesn't this return true?
+
+    if (!frameIsCompleteAtIndex(index))
+        return true;
 
     CFStringRef imageType = CGImageSourceGetType(m_decoder);