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

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

Issue 265793017: Oilpan: move node/element rare data objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased + assert for Nodes having no renderer on destruction. Created 6 years, 8 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/MutationObserver.cpp
diff --git a/Source/core/dom/MutationObserver.cpp b/Source/core/dom/MutationObserver.cpp
index d8ea3ddffc2835eb2ad3c661defa1b4dfb5b6f56..e36a1a7b243262d77d7a3ee733d7d72b8497f112 100644
--- a/Source/core/dom/MutationObserver.cpp
+++ b/Source/core/dom/MutationObserver.cpp
@@ -70,7 +70,9 @@ MutationObserver::MutationObserver(PassOwnPtr<MutationCallback> callback)
MutationObserver::~MutationObserver()
{
+#if !ENABLE(OILPAN)
ASSERT(m_registrations.isEmpty());
zerny-chromium 2014/05/05 07:50:18 Did this assert actually change? (can it be non em
sof 2014/05/05 08:48:51 It has changed as a result of Node (and NodeRareDa
Erik Corry 2014/05/05 09:31:27 But you removed the dispose of this from NodeRareD
sof 2014/05/05 09:40:03 The rare data is deleted => the rare data OwnPtr d
+#endif
if (!m_records.isEmpty())
InspectorInstrumentation::didClearAllMutationRecords(m_callback->executionContext(), this);
}

Powered by Google App Engine
This is Rietveld 408576698