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

Unified Diff: third_party/WebKit/Source/core/css/CSSGlobalRuleSet.cpp

Issue 2589243002: Clear CSSGlobalRuleSet on StyleEngine::didDetach(). (Closed)
Patch Set: reset() -> dispose(). 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/css/CSSGlobalRuleSet.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSGlobalRuleSet.cpp b/third_party/WebKit/Source/core/css/CSSGlobalRuleSet.cpp
index df122f876f9ab97781a4a6bd1b11ea2bd837fb08..a9a93c2ed045e47335fe52bf8e6b6463d4b5db95 100644
--- a/third_party/WebKit/Source/core/css/CSSGlobalRuleSet.cpp
+++ b/third_party/WebKit/Source/core/css/CSSGlobalRuleSet.cpp
@@ -69,6 +69,15 @@ void CSSGlobalRuleSet::update(Document& document) {
m_uncommonAttributeRuleSet = makeRuleSet(m_features.uncommonAttributeRules());
}
+void CSSGlobalRuleSet::dispose() {
+ m_features.clear();
+ m_siblingRuleSet = nullptr;
+ m_uncommonAttributeRuleSet = nullptr;
+ m_watchedSelectorsRuleSet = nullptr;
+ m_hasFullscreenUAStyle = false;
+ m_isDirty = true;
+}
+
DEFINE_TRACE(CSSGlobalRuleSet) {
visitor->trace(m_features);
visitor->trace(m_siblingRuleSet);
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSGlobalRuleSet.h ('k') | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698