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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 #include "core/dom/custom/V0CustomElementMicrotaskRunQueue.h" | 113 #include "core/dom/custom/V0CustomElementMicrotaskRunQueue.h" |
114 #include "core/dom/custom/V0CustomElementRegistrationContext.h" | 114 #include "core/dom/custom/V0CustomElementRegistrationContext.h" |
115 #include "core/dom/shadow/ElementShadow.h" | 115 #include "core/dom/shadow/ElementShadow.h" |
116 #include "core/dom/shadow/FlatTreeTraversal.h" | 116 #include "core/dom/shadow/FlatTreeTraversal.h" |
117 #include "core/dom/shadow/ShadowRoot.h" | 117 #include "core/dom/shadow/ShadowRoot.h" |
118 #include "core/editing/DragCaretController.h" | 118 #include "core/editing/DragCaretController.h" |
119 #include "core/editing/EditingUtilities.h" | 119 #include "core/editing/EditingUtilities.h" |
120 #include "core/editing/Editor.h" | 120 #include "core/editing/Editor.h" |
121 #include "core/editing/FrameSelection.h" | 121 #include "core/editing/FrameSelection.h" |
122 #include "core/editing/InputMethodController.h" | 122 #include "core/editing/InputMethodController.h" |
| 123 #include "core/editing/SelectionController.h" |
123 #include "core/editing/markers/DocumentMarkerController.h" | 124 #include "core/editing/markers/DocumentMarkerController.h" |
124 #include "core/editing/serializers/Serialization.h" | 125 #include "core/editing/serializers/Serialization.h" |
125 #include "core/editing/spellcheck/SpellChecker.h" | 126 #include "core/editing/spellcheck/SpellChecker.h" |
126 #include "core/events/BeforeUnloadEvent.h" | 127 #include "core/events/BeforeUnloadEvent.h" |
127 #include "core/events/Event.h" | 128 #include "core/events/Event.h" |
128 #include "core/events/EventFactory.h" | 129 #include "core/events/EventFactory.h" |
129 #include "core/events/EventListener.h" | 130 #include "core/events/EventListener.h" |
130 #include "core/events/HashChangeEvent.h" | 131 #include "core/events/HashChangeEvent.h" |
131 #include "core/events/PageTransitionEvent.h" | 132 #include "core/events/PageTransitionEvent.h" |
132 #include "core/events/ScopedEventQueue.h" | 133 #include "core/events/ScopedEventQueue.h" |
(...skipping 2214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2347 cache->remove(&node); | 2348 cache->remove(&node); |
2348 } | 2349 } |
2349 } | 2350 } |
2350 } | 2351 } |
2351 | 2352 |
2352 styleEngine().didDetach(); | 2353 styleEngine().didDetach(); |
2353 | 2354 |
2354 frameHost()->eventHandlerRegistry().documentDetached(*this); | 2355 frameHost()->eventHandlerRegistry().documentDetached(*this); |
2355 | 2356 |
2356 m_frame->selection().documentDetached(*this); | 2357 m_frame->selection().documentDetached(*this); |
| 2358 m_frame->eventHandler().selectionController().documentDetached(); |
2357 m_frame->inputMethodController().documentDetached(); | 2359 m_frame->inputMethodController().documentDetached(); |
2358 | 2360 |
2359 // If this Document is associated with a live DocumentLoader, the | 2361 // If this Document is associated with a live DocumentLoader, the |
2360 // DocumentLoader will take care of clearing the FetchContext. Deferring | 2362 // DocumentLoader will take care of clearing the FetchContext. Deferring |
2361 // to the DocumentLoader when possible also prevents prematurely clearing | 2363 // to the DocumentLoader when possible also prevents prematurely clearing |
2362 // the context in the case where multiple Documents end up associated with | 2364 // the context in the case where multiple Documents end up associated with |
2363 // a single DocumentLoader (e.g., navigating to a javascript: url). | 2365 // a single DocumentLoader (e.g., navigating to a javascript: url). |
2364 if (!loader()) | 2366 if (!loader()) |
2365 m_fetcher->clearContext(); | 2367 m_fetcher->clearContext(); |
2366 // If this document is the master for an HTMLImportsController, sever that | 2368 // If this document is the master for an HTMLImportsController, sever that |
(...skipping 4024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6391 } | 6393 } |
6392 | 6394 |
6393 void showLiveDocumentInstances() { | 6395 void showLiveDocumentInstances() { |
6394 WeakDocumentSet& set = liveDocumentSet(); | 6396 WeakDocumentSet& set = liveDocumentSet(); |
6395 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6397 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6396 for (Document* document : set) | 6398 for (Document* document : set) |
6397 fprintf(stderr, "- Document %p URL: %s\n", document, | 6399 fprintf(stderr, "- Document %p URL: %s\n", document, |
6398 document->url().getString().utf8().data()); | 6400 document->url().getString().utf8().data()); |
6399 } | 6401 } |
6400 #endif | 6402 #endif |
OLD | NEW |