| 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 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 #endif | 578 #endif |
| 579 | 579 |
| 580 // It's possible for multiple Documents to end up referencing the same Resou
rceFetcher (e.g., SVGImages | 580 // It's possible for multiple Documents to end up referencing the same Resou
rceFetcher (e.g., SVGImages |
| 581 // load the initial empty document and the SVGDocument with the same Documen
tLoader). | 581 // load the initial empty document and the SVGDocument with the same Documen
tLoader). |
| 582 if (m_fetcher->document() == this) | 582 if (m_fetcher->document() == this) |
| 583 m_fetcher->setDocument(0); | 583 m_fetcher->setDocument(0); |
| 584 m_fetcher.clear(); | 584 m_fetcher.clear(); |
| 585 | 585 |
| 586 // We must call clearRareData() here since a Document class inherits TreeSco
pe | 586 // We must call clearRareData() here since a Document class inherits TreeSco
pe |
| 587 // as well as Node. See a comment on TreeScope.h for the reason. | 587 // as well as Node. See a comment on TreeScope.h for the reason. |
| 588 #if !ENABLE(OILPAN) |
| 588 if (hasRareData()) | 589 if (hasRareData()) |
| 589 clearRareData(); | 590 clearRareData(); |
| 591 #endif |
| 590 | 592 |
| 591 ASSERT(!m_listsInvalidatedAtDocument.size()); | 593 ASSERT(!m_listsInvalidatedAtDocument.size()); |
| 592 | 594 |
| 593 for (unsigned i = 0; i < WTF_ARRAY_LENGTH(m_nodeListCounts); i++) | 595 for (unsigned i = 0; i < WTF_ARRAY_LENGTH(m_nodeListCounts); i++) |
| 594 ASSERT(!m_nodeListCounts[i]); | 596 ASSERT(!m_nodeListCounts[i]); |
| 595 | 597 |
| 596 setClient(0); | 598 setClient(0); |
| 597 | 599 |
| 598 InspectorCounters::decrementCounter(InspectorCounters::DocumentCounter); | 600 InspectorCounters::decrementCounter(InspectorCounters::DocumentCounter); |
| 599 } | 601 } |
| (...skipping 5068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5668 visitor->trace(m_visibilityObservers); | 5670 visitor->trace(m_visibilityObservers); |
| 5669 visitor->trace(m_contextFeatures); | 5671 visitor->trace(m_contextFeatures); |
| 5670 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); | 5672 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); |
| 5671 DocumentSupplementable::trace(visitor); | 5673 DocumentSupplementable::trace(visitor); |
| 5672 TreeScope::trace(visitor); | 5674 TreeScope::trace(visitor); |
| 5673 ContainerNode::trace(visitor); | 5675 ContainerNode::trace(visitor); |
| 5674 ExecutionContext::trace(visitor); | 5676 ExecutionContext::trace(visitor); |
| 5675 } | 5677 } |
| 5676 | 5678 |
| 5677 } // namespace WebCore | 5679 } // namespace WebCore |
| OLD | NEW |