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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
(...skipping 2529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2540 // document has been detached so it can't find the root document. | 2540 // document has been detached so it can't find the root document. |
2541 // We do the removals here instead. | 2541 // We do the removals here instead. |
2542 for (Node& node : NodeTraversal::descendantsOf(*this)) { | 2542 for (Node& node : NodeTraversal::descendantsOf(*this)) { |
2543 cache->remove(&node); | 2543 cache->remove(&node); |
2544 } | 2544 } |
2545 } | 2545 } |
2546 } | 2546 } |
2547 | 2547 |
2548 styleEngine().didDetach(); | 2548 styleEngine().didDetach(); |
2549 | 2549 |
2550 frameHost()->eventHandlerRegistry().documentDetached(*this); | 2550 page()->eventHandlerRegistry().documentDetached(*this); |
2551 | 2551 |
2552 // Signal destruction to mutation observers. | 2552 // Signal destruction to mutation observers. |
2553 SynchronousMutationNotifier::notifyContextDestroyed(); | 2553 SynchronousMutationNotifier::notifyContextDestroyed(); |
2554 | 2554 |
2555 // If this Document is associated with a live DocumentLoader, the | 2555 // If this Document is associated with a live DocumentLoader, the |
2556 // DocumentLoader will take care of clearing the FetchContext. Deferring | 2556 // DocumentLoader will take care of clearing the FetchContext. Deferring |
2557 // to the DocumentLoader when possible also prevents prematurely clearing | 2557 // to the DocumentLoader when possible also prevents prematurely clearing |
2558 // the context in the case where multiple Documents end up associated with | 2558 // the context in the case where multiple Documents end up associated with |
2559 // a single DocumentLoader (e.g., navigating to a javascript: url). | 2559 // a single DocumentLoader (e.g., navigating to a javascript: url). |
2560 if (!loader()) | 2560 if (!loader()) |
(...skipping 4107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6668 } | 6668 } |
6669 | 6669 |
6670 void showLiveDocumentInstances() { | 6670 void showLiveDocumentInstances() { |
6671 WeakDocumentSet& set = liveDocumentSet(); | 6671 WeakDocumentSet& set = liveDocumentSet(); |
6672 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6672 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6673 for (blink::Document* document : set) | 6673 for (blink::Document* document : set) |
6674 fprintf(stderr, "- Document %p URL: %s\n", document, | 6674 fprintf(stderr, "- Document %p URL: %s\n", document, |
6675 document->url().getString().utf8().data()); | 6675 document->url().getString().utf8().data()); |
6676 } | 6676 } |
6677 #endif | 6677 #endif |
OLD | NEW |