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); |