| 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 2197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2208 if (m_mediaQueryMatcher) | 2208 if (m_mediaQueryMatcher) |
| 2209 m_mediaQueryMatcher->documentDetached(); | 2209 m_mediaQueryMatcher->documentDetached(); |
| 2210 | 2210 |
| 2211 lifecycleNotifier().notifyDocumentWasDetached(); | 2211 lifecycleNotifier().notifyDocumentWasDetached(); |
| 2212 m_lifecycle.advanceTo(DocumentLifecycle::Stopped); | 2212 m_lifecycle.advanceTo(DocumentLifecycle::Stopped); |
| 2213 #if ENABLE(OILPAN) | 2213 #if ENABLE(OILPAN) |
| 2214 // Done with the window, explicitly clear to hasten its | 2214 // Done with the window, explicitly clear to hasten its |
| 2215 // destruction. | 2215 // destruction. |
| 2216 clearDOMWindow(); | 2216 clearDOMWindow(); |
| 2217 #endif | 2217 #endif |
| 2218 |
| 2219 LifecycleContext<Document>::contextDestroyed(); |
| 2220 ExecutionContext::contextDestroyed(); |
| 2218 } | 2221 } |
| 2219 | 2222 |
| 2220 void Document::prepareForDestruction() | 2223 void Document::prepareForDestruction() |
| 2221 { | 2224 { |
| 2222 m_markers->prepareForDestruction(); | 2225 m_markers->prepareForDestruction(); |
| 2223 disconnectDescendantFrames(); | 2226 disconnectDescendantFrames(); |
| 2224 | 2227 |
| 2225 // The process of disconnecting descendant frames could have already detache
d us. | 2228 // The process of disconnecting descendant frames could have already detache
d us. |
| 2226 if (!isActive()) | 2229 if (!isActive()) |
| 2227 return; | 2230 return; |
| (...skipping 3625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5853 #ifndef NDEBUG | 5856 #ifndef NDEBUG |
| 5854 using namespace blink; | 5857 using namespace blink; |
| 5855 void showLiveDocumentInstances() | 5858 void showLiveDocumentInstances() |
| 5856 { | 5859 { |
| 5857 WeakDocumentSet& set = liveDocumentSet(); | 5860 WeakDocumentSet& set = liveDocumentSet(); |
| 5858 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5861 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5859 for (Document* document : set) | 5862 for (Document* document : set) |
| 5860 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5863 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
| 5861 } | 5864 } |
| 5862 #endif | 5865 #endif |
| OLD | NEW |