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

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

Issue 262093006: Oilpan: Make the Node hierarchy RefCountedGarbageCollected instead of TreeShared. (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
Index: Source/core/dom/StyleEngine.cpp
diff --git a/Source/core/dom/StyleEngine.cpp b/Source/core/dom/StyleEngine.cpp
index 0ba45539df989ad6ed7c39af7de8de08a9ed8e75..e8e4bac633a62838ede86a74fed312c4e76877c2 100644
--- a/Source/core/dom/StyleEngine.cpp
+++ b/Source/core/dom/StyleEngine.cpp
@@ -80,6 +80,7 @@ StyleEngine::~StyleEngine()
void StyleEngine::detachFromDocument()
{
+#if !ENABLE(OILPAN)
// Cleanup is performed eagerly when the StyleEngine is removed from the
// document. The StyleEngine is unreachable after this, since only the
// document has a reference to it.
@@ -92,16 +93,15 @@ void StyleEngine::detachFromDocument()
if (m_fontSelector) {
m_fontSelector->clearDocument();
-#if !ENABLE(OILPAN)
if (m_resolver)
m_fontSelector->unregisterForInvalidationCallbacks(m_resolver.get());
-#endif
}
// Decrement reference counts for things we could be keeping alive.
m_fontSelector.clear();
m_resolver.clear();
m_styleSheetCollectionMap.clear();
+#endif
}
inline Document* StyleEngine::master()

Powered by Google App Engine
This is Rietveld 408576698