<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&#64;igalia.com" title="Miguel Gomez &lt;magomez&#64;igalia.com&gt;"> <span class="fn">Miguel Gomez</span></a>
</span></b>
        <pre><span class="quote">&gt; I've debugged this and what happens is that BitmapImage::shouldAnimate() is
&gt; false because PNGImageDecoder::repetitionCount() is returning 0, which means
&gt; that it's not an animation.
&gt; The curious thing is that PNGImageDecoder reads 1 as the repetition value
&gt; from the file, but it returns that value minus 1, making it 0. It has been
&gt; that way since that code was added but I don't know why. Just removing that
&gt; minus 1 and returning the gotten repetition value makes the animations work
&gt; 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>