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

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

Issue 2589243002: Clear CSSGlobalRuleSet on StyleEngine::didDetach(). (Closed)
Patch Set: Created 4 years 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: third_party/WebKit/Source/core/dom/StyleEngine.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
index 045bf79748bfd48c6d0a71cdcd18fe9ef7bc4256..c0e1fba918a8b707df09eee9ef06cca15a2a904d 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -457,6 +457,7 @@ void StyleEngine::clearResolver() {
}
void StyleEngine::didDetach() {
+ m_globalRuleSet.reset();
clearResolver();
m_viewportResolver = nullptr;
m_mediaQueryEvaluator = nullptr;

Powered by Google App Engine
This is Rietveld 408576698