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

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

Issue 183463004: Store IdTargetObserver::m_registry as a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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/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 69579955c7564cd5f9244ac196439f740626256a..af185a0ad05e3f1e0ec151c32160a60d76acfb46 100644
--- a/Source/core/dom/IdTargetObserver.cpp
+++ b/Source/core/dom/IdTargetObserver.cpp
@@ -31,16 +31,15 @@
namespace WebCore {
IdTargetObserver::IdTargetObserver(IdTargetObserverRegistry& registry, const AtomicString& id)
- : m_registry(&registry)
+ : m_registry(registry)
, m_id(id)
{
- m_registry->addObserver(m_id, this);
+ m_registry.addObserver(m_id, this);
}
IdTargetObserver::~IdTargetObserver()
{
- if (m_registry)
- m_registry->removeObserver(m_id, this);
+ m_registry.removeObserver(m_id, this);
}
} // namespace WebCore
« 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