haikuwebkit/ManualTests/animated-gif-looping.html

21 lines
453 B
HTML
Raw Permalink Normal View History

<html>
<body>
<div>
https://bugs.webkit.org/show_bug.cgi?id=39857 Make GIFs loop the correct number of times. Previously, everyone looped one time too few for non-infinitely-looping GIFs. Reviewed by Darin Adler. Modified a Qt manual test to be correct and moved it to the general manual test directory. * manual-tests/animated-gif-looping.html: Copied from WebCore/manual-tests/qt/qt-gif-test.html. * manual-tests/qt/qt-10loop-anim.gif: Removed. * manual-tests/qt/qt-anim.gif: Removed. * manual-tests/qt/qt-gif-test.html: Removed. * manual-tests/qt/qt-noanim.gif: Removed. * manual-tests/resources/animated-10x.gif: Copied from WebCore/manual-tests/qt/qt-10loop-anim.gif and modified. * manual-tests/resources/animated-infinite.gif: Copied from WebCore/manual-tests/qt/qt-anim.gif. * manual-tests/resources/non-animated.gif: Copied from WebCore/manual-tests/qt/qt-noanim.gif. * platform/graphics/BitmapImage.cpp: (WebCore::BitmapImage::internalAdvanceAnimation): For a loop count of n, show a total of n + 1 animation cycles. * platform/graphics/ImageSource.h: * platform/graphics/cg/ImageSourceCG.cpp: (WebCore::ImageSource::repetitionCount): * platform/graphics/qt/ImageDecoderQt.cpp: (WebCore::ImageDecoderQt::repetitionCount): Remove translation code now that WebCore matches Qt's internal handling of the loop count. Qt itself may still have a bug here. * platform/image-decoders/gif/GIFImageDecoder.cpp: (WebCore::GIFImageDecoder::repetitionCount): * platform/image-decoders/gif/GIFImageReader.cpp: (GIFImageReader::read): Translate loop count 0 to "loop infinitely" (by restoring one piece of the Mozilla code we'd removed). Canonical link: https://commits.webkit.org/51418@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@60375 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-05-28 21:15:19 +00:00
<img src="./resources/animated-infinite.gif">
<p>This should animate.</p>
</div>
<div>
https://bugs.webkit.org/show_bug.cgi?id=39857 Make GIFs loop the correct number of times. Previously, everyone looped one time too few for non-infinitely-looping GIFs. Reviewed by Darin Adler. Modified a Qt manual test to be correct and moved it to the general manual test directory. * manual-tests/animated-gif-looping.html: Copied from WebCore/manual-tests/qt/qt-gif-test.html. * manual-tests/qt/qt-10loop-anim.gif: Removed. * manual-tests/qt/qt-anim.gif: Removed. * manual-tests/qt/qt-gif-test.html: Removed. * manual-tests/qt/qt-noanim.gif: Removed. * manual-tests/resources/animated-10x.gif: Copied from WebCore/manual-tests/qt/qt-10loop-anim.gif and modified. * manual-tests/resources/animated-infinite.gif: Copied from WebCore/manual-tests/qt/qt-anim.gif. * manual-tests/resources/non-animated.gif: Copied from WebCore/manual-tests/qt/qt-noanim.gif. * platform/graphics/BitmapImage.cpp: (WebCore::BitmapImage::internalAdvanceAnimation): For a loop count of n, show a total of n + 1 animation cycles. * platform/graphics/ImageSource.h: * platform/graphics/cg/ImageSourceCG.cpp: (WebCore::ImageSource::repetitionCount): * platform/graphics/qt/ImageDecoderQt.cpp: (WebCore::ImageDecoderQt::repetitionCount): Remove translation code now that WebCore matches Qt's internal handling of the loop count. Qt itself may still have a bug here. * platform/image-decoders/gif/GIFImageDecoder.cpp: (WebCore::GIFImageDecoder::repetitionCount): * platform/image-decoders/gif/GIFImageReader.cpp: (GIFImageReader::read): Translate loop count 0 to "loop infinitely" (by restoring one piece of the Mozilla code we'd removed). Canonical link: https://commits.webkit.org/51418@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@60375 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-05-28 21:15:19 +00:00
<img src="./resources/non-animated.gif">
<p>This should not animate and you should see a cross.</p>
</div
<div>
<img src="./resources/animated-2x.gif">
<p>This animation should loop 2 times.</p>
</div
<div>
https://bugs.webkit.org/show_bug.cgi?id=39857 Make GIFs loop the correct number of times. Previously, everyone looped one time too few for non-infinitely-looping GIFs. Reviewed by Darin Adler. Modified a Qt manual test to be correct and moved it to the general manual test directory. * manual-tests/animated-gif-looping.html: Copied from WebCore/manual-tests/qt/qt-gif-test.html. * manual-tests/qt/qt-10loop-anim.gif: Removed. * manual-tests/qt/qt-anim.gif: Removed. * manual-tests/qt/qt-gif-test.html: Removed. * manual-tests/qt/qt-noanim.gif: Removed. * manual-tests/resources/animated-10x.gif: Copied from WebCore/manual-tests/qt/qt-10loop-anim.gif and modified. * manual-tests/resources/animated-infinite.gif: Copied from WebCore/manual-tests/qt/qt-anim.gif. * manual-tests/resources/non-animated.gif: Copied from WebCore/manual-tests/qt/qt-noanim.gif. * platform/graphics/BitmapImage.cpp: (WebCore::BitmapImage::internalAdvanceAnimation): For a loop count of n, show a total of n + 1 animation cycles. * platform/graphics/ImageSource.h: * platform/graphics/cg/ImageSourceCG.cpp: (WebCore::ImageSource::repetitionCount): * platform/graphics/qt/ImageDecoderQt.cpp: (WebCore::ImageDecoderQt::repetitionCount): Remove translation code now that WebCore matches Qt's internal handling of the loop count. Qt itself may still have a bug here. * platform/image-decoders/gif/GIFImageDecoder.cpp: (WebCore::GIFImageDecoder::repetitionCount): * platform/image-decoders/gif/GIFImageReader.cpp: (GIFImageReader::read): Translate loop count 0 to "loop infinitely" (by restoring one piece of the Mozilla code we'd removed). Canonical link: https://commits.webkit.org/51418@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@60375 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-05-28 21:15:19 +00:00
<img src="./resources/animated-10x.gif">
<p>This animation should loop 10 times.</p>
</div
</body>
</html>