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

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

Issue 901663005: Revert r189385 "Remove LifecycleContext" and r189391, r189530, r189456 that block it (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/dom/ContextLifecycleObserver.h ('k') | Source/core/dom/Document.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ContextLifecycleObserver.cpp
diff --git a/Source/core/dom/ContextLifecycleObserver.cpp b/Source/core/dom/ContextLifecycleObserver.cpp
index 8f158361e75697254cb1e5646ecff63f64ce6c5d..2d08801b44d3ec2326b4fb848a309c91aa97cf3c 100644
--- a/Source/core/dom/ContextLifecycleObserver.cpp
+++ b/Source/core/dom/ContextLifecycleObserver.cpp
@@ -27,19 +27,18 @@
#include "config.h"
#include "core/dom/ContextLifecycleObserver.h"
-#include "core/dom/ContextLifecycleNotifier.h"
#include "core/dom/ExecutionContext.h"
namespace blink {
-template<> void observeContext(ExecutionContext* context, LifecycleObserver<ExecutionContext>* observer)
+template<> void observerContext(ExecutionContext* context, LifecycleObserver<ExecutionContext>* observer)
{
- context->addObserver(observer);
+ context->wasObservedBy(observer);
}
-template<> void unobserveContext(ExecutionContext* context, LifecycleObserver<ExecutionContext>* observer)
+template<> void unobserverContext(ExecutionContext* context, LifecycleObserver<ExecutionContext>* observer)
{
- context->removeObserver(observer);
+ context->wasUnobservedBy(observer);
}
ContextLifecycleObserver::ContextLifecycleObserver(ExecutionContext* executionContext, Type type)
« no previous file with comments | « Source/core/dom/ContextLifecycleObserver.h ('k') | Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698