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

Unified Diff: Source/core/dom/ExecutionContext.cpp

Issue 304353004: Oilpan: Reduce RefPtr to WorkerGlobalScope. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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: Source/core/dom/ExecutionContext.cpp
diff --git a/Source/core/dom/ExecutionContext.cpp b/Source/core/dom/ExecutionContext.cpp
index f129d4191e6e845cdfd715e974857ef168b18042..2805be1b221cc8ecbfa990505d138cf34dfbfb2d 100644
--- a/Source/core/dom/ExecutionContext.cpp
+++ b/Source/core/dom/ExecutionContext.cpp
@@ -315,6 +315,11 @@ ContextLifecycleNotifier& ExecutionContext::lifecycleNotifier()
return static_cast<ContextLifecycleNotifier&>(LifecycleContext<ExecutionContext>::lifecycleNotifier());
}
+void ExecutionContext::deleteLifecycleNotifier()
+{
+ m_lifecycleNotifier.clear();
+}
+
bool ExecutionContext::isIteratingOverObservers() const
{
return m_lifecycleNotifier && m_lifecycleNotifier->isIteratingOverObservers();

Powered by Google App Engine
This is Rietveld 408576698