Index: third_party/WebKit/Source/core/dom/Document.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
index 26ac4eb144ec0e01fc628d9693323e151f0418f8..3d38bd6d0db07fa38e392fd7846bc2e89b230393 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -120,6 +120,7 @@ |
#include "core/editing/Editor.h" |
#include "core/editing/FrameSelection.h" |
#include "core/editing/InputMethodController.h" |
+#include "core/editing/SelectionController.h" |
#include "core/editing/markers/DocumentMarkerController.h" |
#include "core/editing/serializers/Serialization.h" |
#include "core/editing/spellcheck/SpellChecker.h" |
@@ -2354,6 +2355,7 @@ void Document::shutdown() { |
frameHost()->eventHandlerRegistry().documentDetached(*this); |
m_frame->selection().documentDetached(*this); |
+ m_frame->eventHandler().selectionController().documentDetached(); |
m_frame->inputMethodController().documentDetached(); |
// If this Document is associated with a live DocumentLoader, the |