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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 if (this == &axObjectCacheOwner()) | 562 if (this == &axObjectCacheOwner()) |
563 clearAXObjectCache(); | 563 clearAXObjectCache(); |
564 | 564 |
565 #if !ENABLE(OILPAN) | 565 #if !ENABLE(OILPAN) |
566 if (m_styleSheetList) | 566 if (m_styleSheetList) |
567 m_styleSheetList->detachFromDocument(); | 567 m_styleSheetList->detachFromDocument(); |
568 | 568 |
569 if (m_importsController) | 569 if (m_importsController) |
570 HTMLImportsController::removeFrom(*this); | 570 HTMLImportsController::removeFrom(*this); |
571 | 571 |
572 m_timeline->detachFromDocument(); | |
573 | |
574 // We need to destroy CSSFontSelector before destroying m_fetcher. | 572 // We need to destroy CSSFontSelector before destroying m_fetcher. |
575 m_styleEngine->detachFromDocument(); | 573 m_styleEngine->detachFromDocument(); |
576 | 574 |
577 if (m_elemSheet) | 575 if (m_elemSheet) |
578 m_elemSheet->clearOwnerNode(); | 576 m_elemSheet->clearOwnerNode(); |
579 | 577 |
580 // It's possible for multiple Documents to end up referencing the same Resou
rceFetcher (e.g., SVGImages | 578 // 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). | 579 // load the initial empty document and the SVGDocument with the same Documen
tLoader). |
582 FrameFetchContext& context = static_cast<FrameFetchContext&>(m_fetcher->cont
ext()); | 580 FrameFetchContext& context = static_cast<FrameFetchContext&>(m_fetcher->cont
ext()); |
583 if (context.document() == this) | 581 if (context.document() == this) |
(...skipping 5173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5757 #ifndef NDEBUG | 5755 #ifndef NDEBUG |
5758 using namespace blink; | 5756 using namespace blink; |
5759 void showLiveDocumentInstances() | 5757 void showLiveDocumentInstances() |
5760 { | 5758 { |
5761 WeakDocumentSet& set = liveDocumentSet(); | 5759 WeakDocumentSet& set = liveDocumentSet(); |
5762 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5760 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5763 for (Document* document : set) | 5761 for (Document* document : set) |
5764 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5762 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5765 } | 5763 } |
5766 #endif | 5764 #endif |
OLD | NEW |