RESOLVED INVALID89687
Reloading a cached SVG image does not reset animations
https://bugs.webkit.org/show_bug.cgi?id=89687
Summary Reloading a cached SVG image does not reset animations
Philip Rogers
Reported 2012-06-21 13:17:35 PDT
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
Attachments
Nikolas Zimmermann
Comment 1 2012-06-22 07:33:48 PDT
From SVGImage.cpp: void SVGImage::drawSVGToImageBuffer(ImageBuffer* buffer, const IntSize& size, float zoom, float scale, ShouldClearBuffer shouldClear) { // FIXME: This doesn't work correctly with animations. If an image contains animations, that say run for 2 seconds, // and we currently have one <img> 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't implement SVGSVGElement::setCurrentTime, and can NOT go back in time, once animations started. // There'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'm glad this can be resolved now.
Philip Rogers
Comment 2 2012-06-24 20:51:48 PDT
(In reply to comment #1) > Easy fixable today, as we have setCurrentTime support which is well-tested. I'm glad this can be resolved now. If only it were so simple sometimes :P https://bugs.webkit.org/show_bug.cgi?id=89846
Nikolas Zimmermann
Comment 3 2012-06-25 02:37:33 PDT
(In reply to comment #2) > (In reply to comment #1) > > Easy fixable today, as we have setCurrentTime support which is well-tested. I'm glad this can be resolved now. > > If only it were so simple sometimes :P > https://bugs.webkit.org/show_bug.cgi?id=89846 Heh, I didn't claim it'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 :-)
Brent Fulgham
Comment 4 2022-07-15 15:17:38 PDT
The relevant test site no longer exists. We can't take further action on this bug report.
Note You need to log in before you can comment on or make changes to this bug.