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

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

Issue 336293002: Oilpan: Trace DocumentVisibilityObserver::m_document. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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/Document.h ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 80be86e37fca224957d886d9981a6887b1408db4..2f7a362b9e386168abd4971899e46fbc007b2dbd 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -379,7 +379,7 @@ private:
};
DocumentVisibilityObserver::DocumentVisibilityObserver(Document& document)
- : m_document(0)
+ : m_document(nullptr)
{
registerObserver(document);
}
@@ -391,11 +391,16 @@ DocumentVisibilityObserver::~DocumentVisibilityObserver()
#endif
}
+void DocumentVisibilityObserver::trace(Visitor* visitor)
+{
+ visitor->trace(m_document);
+}
+
void DocumentVisibilityObserver::unregisterObserver()
{
if (m_document) {
m_document->unregisterVisibilityObserver(this);
- m_document = 0;
+ m_document = nullptr;
}
}
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698