12008-09-19 Peter Kasting <pkasting@google.com>
2
3 Reviewed by NOBODY (OOPS!).
4 https://bugs.webkit.org/show_bug.cgi?id=20945
5 Some non-animating images were considered to be animating ones because
6 shouldAnimate() was checked before m_repetitionCount was set.
7
8 * platform/graphics/BitmapImage.cpp:
9 (WebCore::BitmapImage::BitmapImage):
10 (WebCore::BitmapImage::cacheFrame):
11 (WebCore::BitmapImage::repetitionCount):
12 (WebCore::BitmapImage::shouldAnimate):
13 (WebCore::BitmapImage::startAnimation):
14 (WebCore::BitmapImage::internalAdvanceAnimation):
15 * platform/graphics/BitmapImage.h:
16 (WebCore::BitmapImage::):
17 * platform/graphics/cairo/ImageCairo.cpp:
18 (WebCore::BitmapImage::BitmapImage):
19 * platform/graphics/cg/ImageCG.cpp:
20 (WebCore::BitmapImage::BitmapImage):
21