<?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>89687</bug_id>
          
          <creation_ts>2012-06-21 13:17:35 -0700</creation_ts>
          <short_desc>Reloading a cached SVG image does not reset animations</short_desc>
          <delta_ts>2022-07-15 15:17:38 -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>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>89846</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Rogers">pdr</reporter>
          <assigned_to name="Philip Rogers">pdr</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>654821</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Rogers">pdr</who>
    <bug_when>2012-06-21 13:17:35 -0700</bug_when>
    <thetext>If a user refreshes a page, the animation continues from the exact state it was in just prior to the refresh.

There is a reproduction on this page: http://socializepalmsprings.com/archivereference/test-for-chromium/svg-as-img.html

Original bug: crbug.com/132870</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>655447</commentid>
    <comment_count>1</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2012-06-22 07:33:48 -0700</bug_when>
    <thetext>From SVGImage.cpp:


void SVGImage::drawSVGToImageBuffer(ImageBuffer* buffer, const IntSize&amp; size, float zoom, float scale, ShouldClearBuffer shouldClear)
{
    // FIXME: This doesn&apos;t work correctly with animations. If an image contains animations, that say run for 2 seconds,
    // and we currently have one &lt;img&gt; that displays us. If we open another document referencing the same SVGImage it
    // will display the document at a time where animations already ran - even though it has its own ImageBuffer.
    // We currently don&apos;t implement SVGSVGElement::setCurrentTime, and can NOT go back in time, once animations started.
    // There&apos;s no way to fix this besides avoiding style/attribute mutations from SVGAnimationElement.

Easy fixable today, as we have setCurrentTime support which is well-tested. I&apos;m glad this can be resolved now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>656366</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Rogers">pdr</who>
    <bug_when>2012-06-24 20:51:48 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Easy fixable today, as we have setCurrentTime support which is well-tested. I&apos;m glad this can be resolved now.

If only it were so simple sometimes :P
https://bugs.webkit.org/show_bug.cgi?id=89846</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>656446</commentid>
    <comment_count>3</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2012-06-25 02:37:33 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; Easy fixable today, as we have setCurrentTime support which is well-tested. I&apos;m glad this can be resolved now.
&gt; 
&gt; If only it were so simple sometimes :P
&gt; https://bugs.webkit.org/show_bug.cgi?id=89846

Heh, I didn&apos;t claim it&apos;s bug free, but at least setCurrentTime exists now...
When I wrote the comment in SVGImage.cpp, it seemed like light-years away for us to support it, glad it changed :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884286</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-15 15:17:38 -0700</bug_when>
    <thetext>The relevant test site no longer exists. We can&apos;t take further action on this bug report.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>