<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>170591</bug_id>
          
          <creation_ts>2017-04-07 02:17:36 -0700</creation_ts>
          <short_desc>[GTK] Animations not played properly when using synchronous decoding</short_desc>
          <delta_ts>2017-04-13 17:32:24 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=170333</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Miguel Gomez">magomez</reporter>
          <assigned_to name="Miguel Gomez">magomez</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>commit-queue</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1295246</commentid>
    <comment_count>0</comment_count>
    <who name="Miguel Gomez">magomez</who>
    <bug_when>2017-04-07 02:17:36 -0700</bug_when>
    <thetext>For PNG and GIF images, async decoding is used if the file size is bigger than a threshold, otherwise sync decoding is used.

Bug 170333, which happens because async decoding stopped being used, revealed that sync decoding is not working properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1295250</commentid>
    <comment_count>1</comment_count>
    <who name="Miguel Gomez">magomez</who>
    <bug_when>2017-04-07 02:27:43 -0700</bug_when>
    <thetext>There seems to be an error in ImageFrameCache::destroyDecodedData(). Theoretically this should destroy all the decoded frames except one we want to keep, but what it&apos;s actually doing is destroying all the odd ones (including the one we want to keep if it&apos;s odd).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1295253</commentid>
    <comment_count>2</comment_count>
      <attachid>306481</attachid>
    <who name="Miguel Gomez">magomez</who>
    <bug_when>2017-04-07 02:36:44 -0700</bug_when>
    <thetext>Created attachment 306481
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1295254</commentid>
    <comment_count>3</comment_count>
      <attachid>306481</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2017-04-07 02:38:18 -0700</bug_when>
    <thetext>Comment on attachment 306481
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=306481&amp;action=review

&gt; Source/WebCore/platform/graphics/ImageFrameCache.cpp:101
&gt; -        decodedSize += m_frames[index++].clearImage();
&gt; +        decodedSize += m_frames[index].clearImage();

oh! good catch!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1295291</commentid>
    <comment_count>4</comment_count>
      <attachid>306481</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-04-07 05:52:30 -0700</bug_when>
    <thetext>Comment on attachment 306481
Patch

Clearing flags on attachment: 306481

Committed r215091: &lt;http://trac.webkit.org/changeset/215091&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1295292</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-04-07 05:52:31 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1297233</commentid>
    <comment_count>6</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2017-04-13 17:32:24 -0700</bug_when>
    <thetext>&lt;rdar://problem/31617277&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>306481</attachid>
            <date>2017-04-07 02:36:44 -0700</date>
            <delta_ts>2017-04-07 05:52:30 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-170591-20170407113642.patch</filename>
            <type>text/plain</type>
            <size>1656</size>
            <attacher name="Miguel Gomez">magomez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjE1MDg0CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggNTExZmU1NmY5YjA1ODQ3
NDVhY2E0NWIyZDBlNzMzZjRkNjAyYTMyZi4uZDljNDU5MzljMGJiMTJjMjE5NjZjZmE0NjE4MmM4
YmY1N2UxZTBlNCAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE4IEBACisyMDE3LTA0LTA3ICBNaWd1
ZWwgR29tZXogIDxtYWdvbWV6QGlnYWxpYS5jb20+CisKKyAgICAgICAgW0dUSytdIEFuaW1hdGlv
bnMgbm90IHBsYXllZCBwcm9wZXJseSB3aGVuIHVzaW5nIHN5bmNocm9ub3VzIGRlY29kaW5nCisg
ICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xNzA1OTEKKwor
ICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBGaXggYW4gaW5k
ZXggZXJyb3Igd2hlbiBkZXN0cm95aW5nIGRlY29kZWQgZnJhbWVzIHRoYXQgd2FzIHNvbWV0aW1l
cyBkZWxldGluZyB0aGUgZnJhbWUgd2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