<html>
<head>
<base href="https://bugs.webkit.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - REGRESSION(r205841): [GTK] Test fast/images/animated-png.html is failing since r205841"
href="https://bugs.webkit.org/show_bug.cgi?id=168425#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - REGRESSION(r205841): [GTK] Test fast/images/animated-png.html is failing since r205841"
href="https://bugs.webkit.org/show_bug.cgi?id=168425">bug 168425</a>
from <span class="vcard"><a class="email" href="mailto:magomez@igalia.com" title="Miguel Gomez <magomez@igalia.com>"> <span class="fn">Miguel Gomez</span></a>
</span></b>
<pre><span class="quote">> I've debugged this and what happens is that BitmapImage::shouldAnimate() is
> false because PNGImageDecoder::repetitionCount() is returning 0, which means
> that it's not an animation.
> The curious thing is that PNGImageDecoder reads 1 as the repetition value
> from the file, but it returns that value minus 1, making it 0. It has been
> that way since that code was added but I don't know why. Just removing that
> minus 1 and returning the gotten repetition value makes the animations work
> again.</span >
Ah, in the APNG format, 0 for the repetition count means repeat indefinitely, but in the webkit code we use -1 for that. That's probably the explanation for the minus 1... but that's not valid as the code is now.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>