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

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

Issue 225073004: Oilpan: Completely move core/animations/ to oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/platform/heap/Handle.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 938b699358cb4b1ee4462ddaf601447788c03f0d..c4dd0bd4c32fb5d1c731017160dd19303bb0e957 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -571,10 +571,10 @@ Document::~Document()
m_importsController = 0;
}
+#if !ENABLE(OILPAN)
m_timeline->detachFromDocument();
m_transitionTimeline->detachFromDocument();
-#if !ENABLE(OILPAN)
// We need to destroy CSSFontSelector before destroying m_fetcher.
if (m_styleEngine)
m_styleEngine->detachFromDocument();
@@ -587,11 +587,9 @@ Document::~Document()
if (m_fetcher->document() == this)
m_fetcher->setDocument(nullptr);
m_fetcher.clear();
-#endif
// We must call clearRareData() here since a Document class inherits TreeScope
// as well as Node. See a comment on TreeScope.h for the reason.
-#if !ENABLE(OILPAN)
if (hasRareData())
clearRareData();
#endif
@@ -5729,6 +5727,9 @@ void Document::trace(Visitor* visitor)
visitor->trace(m_visibilityObservers);
visitor->trace(m_userActionElements);
visitor->trace(m_svgExtensions);
+ visitor->trace(m_timeline);
+ visitor->trace(m_transitionTimeline);
+ visitor->trace(m_compositorPendingAnimations);
visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this);
DocumentSupplementable::trace(visitor);
TreeScope::trace(visitor);
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/platform/heap/Handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698