Index: Source/WebCore/dom/Document.cpp |
=================================================================== |
--- Source/WebCore/dom/Document.cpp (revision 102463) |
+++ Source/WebCore/dom/Document.cpp (working copy) |
@@ -609,7 +609,9 @@ |
#if ENABLE(REQUEST_ANIMATION_FRAME) |
// FIXME: consider using ActiveDOMObject. |
- m_scriptedAnimationController = nullptr; |
+ if (m_scriptedAnimationController) |
+ m_scriptedAnimationController->clearDocumentPointer(); |
+ m_scriptedAnimationController.clear(); |
#endif |
#ifndef NDEBUG |
@@ -1821,7 +1823,9 @@ |
#if ENABLE(REQUEST_ANIMATION_FRAME) |
// FIXME: consider using ActiveDOMObject. |
- m_scriptedAnimationController = nullptr; |
+ if (m_scriptedAnimationController) |
+ m_scriptedAnimationController->clearDocumentPointer(); |
+ m_scriptedAnimationController.clear(); |
#endif |
RenderObject* render = renderer(); |