Index: Source/WebCore/platform/image-decoders/ImageDecoder.h |
diff --git a/Source/WebCore/platform/image-decoders/ImageDecoder.h b/Source/WebCore/platform/image-decoders/ImageDecoder.h |
index 2a17903ca7884c10090299162efe3b294ff4733b..7fc7791c5c47a7e5b19c4a3e9432f6c9edfff4be 100644 |
--- a/Source/WebCore/platform/image-decoders/ImageDecoder.h |
+++ b/Source/WebCore/platform/image-decoders/ImageDecoder.h |
@@ -228,10 +228,9 @@ namespace WebCore { |
ColorProfile m_colorProfile; |
#endif |
bool m_hasAlpha; |
- IntRect m_originalFrameRect; // This will always just be the entire |
- // buffer except for GIF frames whose |
- // original rect was smaller than the |
- // overall image size. |
+ // This will always just be the entire buffer except for GIF or WebP |
+ // frames whose original rect was smaller than the overall image size. |
+ IntRect m_originalFrameRect; |
FrameStatus m_status; |
unsigned m_duration; |
FrameDisposalMethod m_disposalMethod; |
@@ -292,9 +291,9 @@ namespace WebCore { |
// This will only differ from size() for ICO (where each frame is a |
// different icon) or other formats where different frames are different |
- // sizes. This does NOT differ from size() for GIF, since decoding GIFs |
- // composites any smaller frames against previous frames to create full- |
- // size frames. |
+ // sizes. This does NOT differ from size() for GIF or WebP, since |
+ // decoding GIF or WebP composites any smaller frames against previous |
+ // frames to create full-size frames. |
virtual IntSize frameSizeAtIndex(size_t) const |
{ |
return size(); |
@@ -400,8 +399,8 @@ namespace WebCore { |
bool failed() const { return m_failed; } |
// Clears decoded pixel data from before the provided frame unless that |
- // data may be needed to decode future frames (e.g. due to GIF frame |
- // compositing). |
+ // data may be needed to decode future frames (e.g. due to GIF/WebP |
+ // frame compositing). |
virtual void clearFrameBufferCache(size_t) { } |
#if ENABLE(IMAGE_DECODER_DOWN_SAMPLING) |