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

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

Issue 1148383012: Oilpan: prefer eager finalization over prefinalizers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: expand&improve comments Created 5 years, 6 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/MutationObserver.h ('k') | Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/MutationObserver.cpp
diff --git a/Source/core/dom/MutationObserver.cpp b/Source/core/dom/MutationObserver.cpp
index b90f533d01cdc4f83d053fc6c3b25d1af35500a4..d0abebffa307ab991be556e9a3ad3fd8f69f66b6 100644
--- a/Source/core/dom/MutationObserver.cpp
+++ b/Source/core/dom/MutationObserver.cpp
@@ -64,21 +64,13 @@ MutationObserver::MutationObserver(PassOwnPtrWillBeRawPtr<MutationCallback> call
: m_callback(callback)
, m_priority(s_observerPriority++)
{
-#if ENABLE(OILPAN)
- ThreadState::current()->registerPreFinalizer(*this);
-#endif
}
MutationObserver::~MutationObserver()
{
#if !ENABLE(OILPAN)
ASSERT(m_registrations.isEmpty());
- dispose();
#endif
-}
-
-void MutationObserver::dispose()
-{
if (!m_records.isEmpty())
InspectorInstrumentation::didClearAllMutationRecords(m_callback->executionContext(), this);
}
« no previous file with comments | « Source/core/dom/MutationObserver.h ('k') | Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698