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

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

Issue 262093006: Oilpan: Make the Node hierarchy RefCountedGarbageCollected instead of TreeShared. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another build fix. Created 6 years, 7 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/IdTargetObserver.cpp
diff --git a/Source/core/dom/IdTargetObserver.cpp b/Source/core/dom/IdTargetObserver.cpp
index af185a0ad05e3f1e0ec151c32160a60d76acfb46..50294e4db3c126fa2ae91c6443ea4b9a04610f5d 100644
--- a/Source/core/dom/IdTargetObserver.cpp
+++ b/Source/core/dom/IdTargetObserver.cpp
@@ -39,7 +39,16 @@ IdTargetObserver::IdTargetObserver(IdTargetObserverRegistry& registry, const Ato
IdTargetObserver::~IdTargetObserver()
{
+#if !ENABLE(OILPAN)
m_registry.removeObserver(m_id, this);
+#endif
+}
+
+void IdTargetObserver::unregister()
+{
+#if ENABLE(OILPAN)
+ m_registry.removeObserver(m_id, this);
+#endif
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698