| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 7b3cad2457145569d99998134c088e7d094c029f..e7603449ef1d9ccbea20e83abf6eb5fb4ec427aa 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -621,6 +621,9 @@ void Document::dispose()
|
| m_scriptedAnimationController->clearDocumentPointer();
|
| m_scriptedAnimationController.clear();
|
|
|
| + if (svgExtensions())
|
| + accessSVGExtensions()->pauseAnimations();
|
| +
|
| lifecycleNotifier()->notifyDocumentWasDisposed();
|
| }
|
|
|
| @@ -1885,6 +1888,9 @@ void Document::detach(const AttachContext& context)
|
| m_scriptedAnimationController->clearDocumentPointer();
|
| m_scriptedAnimationController.clear();
|
|
|
| + if (svgExtensions())
|
| + accessSVGExtensions()->pauseAnimations();
|
| +
|
| RenderObject* render = renderer();
|
|
|
| documentWillBecomeInactive();
|
| @@ -1895,7 +1901,6 @@ void Document::detach(const AttachContext& context)
|
| FrameView* view = m_frame->view();
|
| if (view)
|
| view->detachCustomScrollbars();
|
| -
|
| }
|
|
|
| // indicate destruction mode, i.e. attached() but renderer == 0
|
|
|