diff options
Diffstat (limited to 'WebCore/platform/image-decoders/skia/ImageDecoder.h')
-rw-r--r-- | WebCore/platform/image-decoders/skia/ImageDecoder.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/WebCore/platform/image-decoders/skia/ImageDecoder.h b/WebCore/platform/image-decoders/skia/ImageDecoder.h index b983315..cddb69b 100644 --- a/WebCore/platform/image-decoders/skia/ImageDecoder.h +++ b/WebCore/platform/image-decoders/skia/ImageDecoder.h @@ -132,10 +132,11 @@ namespace WebCore { void clear() { m_bitmapRef = RefCountedNativeImageSkia::create(); - m_rect = IntRect(); m_status = FrameEmpty; - m_duration = 0; - m_disposalMethod = DisposeNotSpecified; + // NOTE: Do not reset other members here; clearFrameBufferCache() + // calls this to free the bitmap data, but other functions like + // initFrameBuffer() and frameComplete() may still need to read + // other metadata out of this frame later. } // This function creates a new copy of the image data in |other|, so the |