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

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

Issue 418833002: Remove all members in ScopedStyleTree for preparing class removal (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix destructor Created 6 years, 5 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 e40ce1e96683e288aeaf3076b2518eeed0508ff4..bd344b4f56e9cd6554470d19e8ac49004d5da995 100644
--- a/Source/core/dom/StyleEngine.cpp
+++ b/Source/core/dom/StyleEngine.cpp
@@ -486,6 +486,11 @@ void StyleEngine::clearResolver()
{
ASSERT(!document().inStyleRecalc());
ASSERT(isMaster() || !m_resolver);
+
+ m_document->clearScopedStyleResolver();
+ for (StyleSheetCollectionMap::iterator it = m_styleSheetCollectionMap.begin(); it != m_styleSheetCollectionMap.end(); ++it)
+ it->key->clearScopedStyleResolver();
+
if (m_resolver)
document().updateStyleInvalidationIfNeeded();
m_resolver.clear();

Powered by Google App Engine
This is Rietveld 408576698