OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 | 614 |
615 m_markers->detach(); | 615 m_markers->detach(); |
616 | 616 |
617 m_cssCanvasElements.clear(); | 617 m_cssCanvasElements.clear(); |
618 | 618 |
619 // FIXME: consider using ActiveDOMObject. | 619 // FIXME: consider using ActiveDOMObject. |
620 if (m_scriptedAnimationController) | 620 if (m_scriptedAnimationController) |
621 m_scriptedAnimationController->clearDocumentPointer(); | 621 m_scriptedAnimationController->clearDocumentPointer(); |
622 m_scriptedAnimationController.clear(); | 622 m_scriptedAnimationController.clear(); |
623 | 623 |
| 624 if (svgExtensions()) |
| 625 accessSVGExtensions()->pauseAnimations(); |
| 626 |
624 lifecycleNotifier()->notifyDocumentWasDisposed(); | 627 lifecycleNotifier()->notifyDocumentWasDisposed(); |
625 } | 628 } |
626 | 629 |
627 Element* Document::getElementById(const AtomicString& id) const | 630 Element* Document::getElementById(const AtomicString& id) const |
628 { | 631 { |
629 return TreeScope::getElementById(id); | 632 return TreeScope::getElementById(id); |
630 } | 633 } |
631 | 634 |
632 SelectorQueryCache* Document::selectorQueryCache() | 635 SelectorQueryCache* Document::selectorQueryCache() |
633 { | 636 { |
(...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1878 clearAXObjectCache(); | 1881 clearAXObjectCache(); |
1879 | 1882 |
1880 stopActiveDOMObjects(); | 1883 stopActiveDOMObjects(); |
1881 m_eventQueue->close(); | 1884 m_eventQueue->close(); |
1882 | 1885 |
1883 // FIXME: consider using ActiveDOMObject. | 1886 // FIXME: consider using ActiveDOMObject. |
1884 if (m_scriptedAnimationController) | 1887 if (m_scriptedAnimationController) |
1885 m_scriptedAnimationController->clearDocumentPointer(); | 1888 m_scriptedAnimationController->clearDocumentPointer(); |
1886 m_scriptedAnimationController.clear(); | 1889 m_scriptedAnimationController.clear(); |
1887 | 1890 |
| 1891 if (svgExtensions()) |
| 1892 accessSVGExtensions()->pauseAnimations(); |
| 1893 |
1888 RenderObject* render = renderer(); | 1894 RenderObject* render = renderer(); |
1889 | 1895 |
1890 documentWillBecomeInactive(); | 1896 documentWillBecomeInactive(); |
1891 | 1897 |
1892 SharedWorkerRepository::documentDetached(this); | 1898 SharedWorkerRepository::documentDetached(this); |
1893 | 1899 |
1894 if (m_frame) { | 1900 if (m_frame) { |
1895 FrameView* view = m_frame->view(); | 1901 FrameView* view = m_frame->view(); |
1896 if (view) | 1902 if (view) |
1897 view->detachCustomScrollbars(); | 1903 view->detachCustomScrollbars(); |
1898 | |
1899 } | 1904 } |
1900 | 1905 |
1901 // indicate destruction mode, i.e. attached() but renderer == 0 | 1906 // indicate destruction mode, i.e. attached() but renderer == 0 |
1902 setRenderer(0); | 1907 setRenderer(0); |
1903 | 1908 |
1904 m_hoverNode = 0; | 1909 m_hoverNode = 0; |
1905 m_focusedNode = 0; | 1910 m_focusedNode = 0; |
1906 m_activeElement = 0; | 1911 m_activeElement = 0; |
1907 | 1912 |
1908 ContainerNode::detach(context); | 1913 ContainerNode::detach(context); |
(...skipping 3242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5151 { | 5156 { |
5152 return DocumentLifecycleNotifier::create(this); | 5157 return DocumentLifecycleNotifier::create(this); |
5153 } | 5158 } |
5154 | 5159 |
5155 DocumentLifecycleNotifier* Document::lifecycleNotifier() | 5160 DocumentLifecycleNotifier* Document::lifecycleNotifier() |
5156 { | 5161 { |
5157 return static_cast<DocumentLifecycleNotifier*>(ScriptExecutionContext::lifec
ycleNotifier()); | 5162 return static_cast<DocumentLifecycleNotifier*>(ScriptExecutionContext::lifec
ycleNotifier()); |
5158 } | 5163 } |
5159 | 5164 |
5160 } // namespace WebCore | 5165 } // namespace WebCore |
OLD | NEW |