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

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

Issue 278803002: Oilpan: Prepare to move IdTargetObserver and IdTargetObserverRegistry to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: apply comments 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
« no previous file with comments | « Source/core/dom/IdTargetObserver.h ('k') | Source/core/dom/IdTargetObserverRegistry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/IdTargetObserver.cpp
diff --git a/Source/core/dom/IdTargetObserver.cpp b/Source/core/dom/IdTargetObserver.cpp
index 50294e4db3c126fa2ae91c6443ea4b9a04610f5d..c821d7803c7d45e9102dbc4dffa8884e7bd38e4e 100644
--- a/Source/core/dom/IdTargetObserver.cpp
+++ b/Source/core/dom/IdTargetObserver.cpp
@@ -30,24 +30,29 @@
namespace WebCore {
-IdTargetObserver::IdTargetObserver(IdTargetObserverRegistry& registry, const AtomicString& id)
- : m_registry(registry)
+IdTargetObserver::IdTargetObserver(IdTargetObserverRegistry& observerRegistry, const AtomicString& id)
+ : m_registry(&observerRegistry)
, m_id(id)
{
- m_registry.addObserver(m_id, this);
+ registry().addObserver(m_id, this);
}
IdTargetObserver::~IdTargetObserver()
{
#if !ENABLE(OILPAN)
- m_registry.removeObserver(m_id, this);
+ registry().removeObserver(m_id, this);
#endif
}
+void IdTargetObserver::trace(Visitor* visitor)
+{
+ visitor->trace(m_registry);
+}
+
void IdTargetObserver::unregister()
{
#if ENABLE(OILPAN)
- m_registry.removeObserver(m_id, this);
+ registry().removeObserver(m_id, this);
#endif
}
« no previous file with comments | « Source/core/dom/IdTargetObserver.h ('k') | Source/core/dom/IdTargetObserverRegistry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698