| 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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 #if !ENABLE(OILPAN) | 564 #if !ENABLE(OILPAN) |
| 565 if (m_styleSheetList) | 565 if (m_styleSheetList) |
| 566 m_styleSheetList->detachFromDocument(); | 566 m_styleSheetList->detachFromDocument(); |
| 567 #endif | 567 #endif |
| 568 | 568 |
| 569 if (m_importsController) { | 569 if (m_importsController) { |
| 570 m_importsController->wasDetachedFrom(*this); | 570 m_importsController->wasDetachedFrom(*this); |
| 571 m_importsController = 0; | 571 m_importsController = 0; |
| 572 } | 572 } |
| 573 | 573 |
| 574 #if !ENABLE(OILPAN) |
| 574 m_timeline->detachFromDocument(); | 575 m_timeline->detachFromDocument(); |
| 575 m_transitionTimeline->detachFromDocument(); | 576 m_transitionTimeline->detachFromDocument(); |
| 576 | 577 |
| 577 #if !ENABLE(OILPAN) | |
| 578 // We need to destroy CSSFontSelector before destroying m_fetcher. | 578 // We need to destroy CSSFontSelector before destroying m_fetcher. |
| 579 if (m_styleEngine) | 579 if (m_styleEngine) |
| 580 m_styleEngine->detachFromDocument(); | 580 m_styleEngine->detachFromDocument(); |
| 581 | 581 |
| 582 if (m_elemSheet) | 582 if (m_elemSheet) |
| 583 m_elemSheet->clearOwnerNode(); | 583 m_elemSheet->clearOwnerNode(); |
| 584 | 584 |
| 585 // It's possible for multiple Documents to end up referencing the same Resou
rceFetcher (e.g., SVGImages | 585 // It's possible for multiple Documents to end up referencing the same Resou
rceFetcher (e.g., SVGImages |
| 586 // load the initial empty document and the SVGDocument with the same Documen
tLoader). | 586 // load the initial empty document and the SVGDocument with the same Documen
tLoader). |
| 587 if (m_fetcher->document() == this) | 587 if (m_fetcher->document() == this) |
| 588 m_fetcher->setDocument(nullptr); | 588 m_fetcher->setDocument(nullptr); |
| 589 m_fetcher.clear(); | 589 m_fetcher.clear(); |
| 590 #endif | |
| 591 | 590 |
| 592 // We must call clearRareData() here since a Document class inherits TreeSco
pe | 591 // We must call clearRareData() here since a Document class inherits TreeSco
pe |
| 593 // as well as Node. See a comment on TreeScope.h for the reason. | 592 // as well as Node. See a comment on TreeScope.h for the reason. |
| 594 #if !ENABLE(OILPAN) | |
| 595 if (hasRareData()) | 593 if (hasRareData()) |
| 596 clearRareData(); | 594 clearRareData(); |
| 597 #endif | 595 #endif |
| 598 | 596 |
| 599 ASSERT(!m_listsInvalidatedAtDocument.size()); | 597 ASSERT(!m_listsInvalidatedAtDocument.size()); |
| 600 | 598 |
| 601 for (unsigned i = 0; i < WTF_ARRAY_LENGTH(m_nodeListCounts); i++) | 599 for (unsigned i = 0; i < WTF_ARRAY_LENGTH(m_nodeListCounts); i++) |
| 602 ASSERT(!m_nodeListCounts[i]); | 600 ASSERT(!m_nodeListCounts[i]); |
| 603 | 601 |
| 604 setClient(0); | 602 setClient(0); |
| (...skipping 5117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5722 visitor->trace(m_fetcher); | 5720 visitor->trace(m_fetcher); |
| 5723 visitor->trace(m_contextFeatures); | 5721 visitor->trace(m_contextFeatures); |
| 5724 visitor->trace(m_styleSheetList); | 5722 visitor->trace(m_styleSheetList); |
| 5725 visitor->trace(m_mediaQueryMatcher); | 5723 visitor->trace(m_mediaQueryMatcher); |
| 5726 visitor->trace(m_associatedFormControls); | 5724 visitor->trace(m_associatedFormControls); |
| 5727 visitor->trace(m_templateDocument); | 5725 visitor->trace(m_templateDocument); |
| 5728 visitor->trace(m_templateDocumentHost); | 5726 visitor->trace(m_templateDocumentHost); |
| 5729 visitor->trace(m_visibilityObservers); | 5727 visitor->trace(m_visibilityObservers); |
| 5730 visitor->trace(m_userActionElements); | 5728 visitor->trace(m_userActionElements); |
| 5731 visitor->trace(m_svgExtensions); | 5729 visitor->trace(m_svgExtensions); |
| 5730 visitor->trace(m_timeline); |
| 5731 visitor->trace(m_transitionTimeline); |
| 5732 visitor->trace(m_compositorPendingAnimations); |
| 5732 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); | 5733 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); |
| 5733 DocumentSupplementable::trace(visitor); | 5734 DocumentSupplementable::trace(visitor); |
| 5734 TreeScope::trace(visitor); | 5735 TreeScope::trace(visitor); |
| 5735 ContainerNode::trace(visitor); | 5736 ContainerNode::trace(visitor); |
| 5736 ExecutionContext::trace(visitor); | 5737 ExecutionContext::trace(visitor); |
| 5737 } | 5738 } |
| 5738 | 5739 |
| 5739 } // namespace WebCore | 5740 } // namespace WebCore |
| OLD | NEW |