Index: third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp |
diff --git a/third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp b/third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp |
index 6e8becc9192f1ccc4ecfb86645254a3f3455f048..bcd99e8b039ac66e5230846ff486219241b60c5b 100644 |
--- a/third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp |
+++ b/third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp |
@@ -59,6 +59,15 @@ void StyleSheetCollection::appendSheetForList(StyleSheet* sheet) |
m_styleSheetsForStyleSheetList.append(sheet); |
} |
+void StyleSheetCollection::purgeMemory() |
+{ |
+ WillBeHeapVector<RefPtrWillBeMember<StyleSheet>>::iterator it = m_styleSheetsForStyleSheetList.begin(); |
+ while (it != m_styleSheetsForStyleSheetList.end()) { |
+ (*it)->purgeMemory(); |
+ ++it; |
+ } |
+} |
+ |
DEFINE_TRACE(StyleSheetCollection) |
{ |
visitor->trace(m_activeAuthorStyleSheets); |