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

Unified Diff: Source/core/frame/DOMWindowLifecycleNotifier.cpp

Issue 965393002: Simplify ContextLifecycleNotifier's handling of ActiveDOMObjects. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: manually count the ActiveDOMObjects instead 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/ExecutionContext.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/DOMWindowLifecycleNotifier.cpp
diff --git a/Source/core/frame/DOMWindowLifecycleNotifier.cpp b/Source/core/frame/DOMWindowLifecycleNotifier.cpp
index dc23a6abcda7fc58a0fcbe0d8d17c8e2d2ef2e31..9ea2188f952b06b1e68d27c5381a16c404d1a14d 100644
--- a/Source/core/frame/DOMWindowLifecycleNotifier.cpp
+++ b/Source/core/frame/DOMWindowLifecycleNotifier.cpp
@@ -57,14 +57,14 @@ void DOMWindowLifecycleNotifier::notifyRemoveEventListener(LocalDOMWindow* windo
{
TemporaryChange<IterationType> scope(m_iterating, IteratingOverAll);
for (DOMWindowLifecycleObserver* observer : m_observers)
- static_cast<DOMWindowLifecycleObserver*>(observer)->didRemoveEventListener(window, eventType);
+ observer->didRemoveEventListener(window, eventType);
}
void DOMWindowLifecycleNotifier::notifyRemoveAllEventListeners(LocalDOMWindow* window)
{
TemporaryChange<IterationType> scope(m_iterating, IteratingOverAll);
for (DOMWindowLifecycleObserver* observer : m_observers)
- static_cast<DOMWindowLifecycleObserver*>(observer)->didRemoveAllEventListeners(window);
+ observer->didRemoveAllEventListeners(window);
}
} // namespace blink
« no previous file with comments | « Source/core/dom/ExecutionContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698