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

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

Issue 298863010: Oilpan: have PendingScripts trace their script elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Trace HTMLScriptRunnerHost from HTMLScriptRunner 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/Document.h ('k') | Source/core/dom/PendingScript.h » ('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 1b58988fa57f7919eb3c223be714fb8e9d4aa15d..d8bae3c9c0648b2e235041b3f80cf4539a4df28d 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -541,7 +541,6 @@ Document::~Document()
if (m_templateDocument)
m_templateDocument->m_templateDocumentHost = nullptr; // balanced in ensureTemplateDocument().
-#endif
m_scriptRunner.clear();
@@ -549,7 +548,6 @@ Document::~Document()
// not notify the inspector instrumentation that the event listeners are
// gone. The Document and all the nodes in the document are gone, so maybe
// that is OK?
-#if !ENABLE(OILPAN)
removeAllEventListenersRecursively();
// Currently we believe that Document can never outlive the parser.
@@ -5774,6 +5772,7 @@ void Document::trace(Visitor* visitor)
visitor->trace(m_titleElement);
visitor->trace(m_markers);
visitor->trace(m_currentScriptStack);
+ visitor->trace(m_scriptRunner);
visitor->trace(m_transformSourceDocument);
visitor->trace(m_listsInvalidatedAtDocument);
#if ENABLE(OILPAN)
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/PendingScript.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698