summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/BitmapImage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/BitmapImage.cpp')
-rw-r--r--WebCore/platform/graphics/BitmapImage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/BitmapImage.cpp b/WebCore/platform/graphics/BitmapImage.cpp
index 1d97632..2f9412d 100644
--- a/WebCore/platform/graphics/BitmapImage.cpp
+++ b/WebCore/platform/graphics/BitmapImage.cpp
@@ -95,7 +95,7 @@ void BitmapImage::destroyDecodedDataIfNecessary(bool destroyAll)
// Animated images >5MB are considered large enough that we'll only hang on
// to one frame at a time.
static const unsigned cLargeAnimationCutoff = 5242880;
- if (frameCount() * frameBytes(m_size) > cLargeAnimationCutoff)
+ if (m_frames.size() * frameBytes(m_size) > cLargeAnimationCutoff)
destroyDecodedData(destroyAll);
}