Chromium Code Reviews| 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. |