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

Unified Diff: third_party/WebKit/Source/core/dom/SynchronousMutationObserver.h

Issue 2939223003: Add DocumentShutdown{Notifier,Observer} (Closed)
Patch Set: 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/SynchronousMutationObserver.h
diff --git a/third_party/WebKit/Source/core/dom/SynchronousMutationObserver.h b/third_party/WebKit/Source/core/dom/SynchronousMutationObserver.h
index 63e38659f53f7c70ff2175e5db2e520ce8a84120..bcfdfa0b5c05cfe24270949effdbaced10cd4cad 100644
--- a/third_party/WebKit/Source/core/dom/SynchronousMutationObserver.h
+++ b/third_party/WebKit/Source/core/dom/SynchronousMutationObserver.h
@@ -20,6 +20,9 @@ class Text;
// This class is a base class for classes which observe DOM tree mutation
// synchronously. If you want to observe DOM tree mutation asynchronously see
// MutationObserver Web API.
+// Note: if you only need to observe Document shutdown,
yosin_UTC9 2017/06/16 01:06:21 Thanks for adding this notice!
+// DocumentShutdownObserver provides this same functionality more efficiently
+// (since it doesn't observe the other events).
//
// TODO(yosin): Following classes should be derived from this class to
// simplify Document class.

Powered by Google App Engine
This is Rietveld 408576698