> Stop starting animations when leaving a page
> Reviewed by Stephen Chenney.
> SVGImage::resetAnimation() incorrectly started animations which could cause a crash
> when leaving the page. This patch fixes resetAnimation to only stop the animation,
> similar to BitmapImage::resetAnimation().
> Additionally, this patch removes an unneeded call to Document::updateStyleForAllDocuments()
> that was present in the animation loop. This makes the animation code more resistant to
> similar bugs in the future.
> Both of these changes are functionally covered with existing tests.
> Test: svg/animations/reset-animation-crash.html
> * svg/animation/SMILTimeContainer.cpp:
> * svg/graphics/SVGImage.cpp:
> * svg/animations/reset-animation-crash-expected.html: Added.
> * svg/animations/reset-animation-crash.html: Added.