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

Unified Diff: Source/core/dom/ContextLifecycleNotifier.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/ContextLifecycleNotifier.h ('k') | Source/core/dom/ContextLifecycleObserver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ContextLifecycleNotifier.cpp
diff --git a/Source/core/dom/ContextLifecycleNotifier.cpp b/Source/core/dom/ContextLifecycleNotifier.cpp
index 0239d7c2e40bcc20640c524c59d1c3c14985102a..b96e04260cad9482302a0008fc69db59beb6565e 100644
--- a/Source/core/dom/ContextLifecycleNotifier.cpp
+++ b/Source/core/dom/ContextLifecycleNotifier.cpp
@@ -38,6 +38,10 @@ ContextLifecycleNotifier::ContextLifecycleNotifier(ExecutionContext* context)
{
}
+ContextLifecycleNotifier::~ContextLifecycleNotifier()
+{
+}
+
void ContextLifecycleNotifier::addObserver(ContextLifecycleNotifier::Observer* observer)
{
LifecycleNotifier<ExecutionContext>::addObserver(observer);
@@ -59,7 +63,7 @@ void ContextLifecycleNotifier::removeObserver(ContextLifecycleNotifier::Observer
void ContextLifecycleNotifier::notifyResumingActiveDOMObjects()
{
- TemporaryChange<IterationType> scope(m_iterating, IteratingOverActiveDOMObjects);
+ TemporaryChange<IterationType> scope(this->m_iterating, IteratingOverActiveDOMObjects);
Vector<ActiveDOMObject*> snapshotOfActiveDOMObjects;
copyToVector(m_activeDOMObjects, snapshotOfActiveDOMObjects);
for (ActiveDOMObject* obj : snapshotOfActiveDOMObjects) {
@@ -80,7 +84,7 @@ void ContextLifecycleNotifier::notifyResumingActiveDOMObjects()
void ContextLifecycleNotifier::notifySuspendingActiveDOMObjects()
{
- TemporaryChange<IterationType> scope(m_iterating, IteratingOverActiveDOMObjects);
+ TemporaryChange<IterationType> scope(this->m_iterating, IteratingOverActiveDOMObjects);
Vector<ActiveDOMObject*> snapshotOfActiveDOMObjects;
copyToVector(m_activeDOMObjects, snapshotOfActiveDOMObjects);
for (ActiveDOMObject* obj : snapshotOfActiveDOMObjects) {
@@ -96,7 +100,7 @@ void ContextLifecycleNotifier::notifySuspendingActiveDOMObjects()
void ContextLifecycleNotifier::notifyStoppingActiveDOMObjects()
{
- TemporaryChange<IterationType> scope(m_iterating, IteratingOverActiveDOMObjects);
+ TemporaryChange<IterationType> scope(this->m_iterating, IteratingOverActiveDOMObjects);
Vector<ActiveDOMObject*> snapshotOfActiveDOMObjects;
copyToVector(m_activeDOMObjects, snapshotOfActiveDOMObjects);
for (ActiveDOMObject* obj : snapshotOfActiveDOMObjects) {
« no previous file with comments | « Source/core/dom/ContextLifecycleNotifier.h ('k') | Source/core/dom/ContextLifecycleObserver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698