Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2939223003: Add DocumentShutdown{Notifier,Observer} (Closed)
Patch Set: Add CORE_EXPORT to DocumentShutdownNotifier Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 fd0f51ca7d38f92ec8bf9f4d8e17b4cd052e75c0..780fc4aae6c94f9374b716e89efab27ad9eda984 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -2636,6 +2636,7 @@ void Document::Shutdown() {
GetPage()->GetEventHandlerRegistry().DocumentDetached(*this);
// Signal destruction to mutation observers.
+ DocumentShutdownNotifier::NotifyContextDestroyed();
SynchronousMutationNotifier::NotifyContextDestroyed();
// If this Document is associated with a live DocumentLoader, the
@@ -6855,6 +6856,7 @@ DEFINE_TRACE(Document) {
ContainerNode::Trace(visitor);
ExecutionContext::Trace(visitor);
SecurityContext::Trace(visitor);
+ DocumentShutdownNotifier::Trace(visitor);
SynchronousMutationNotifier::Trace(visitor);
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/DocumentShutdownNotifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698