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

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

Issue 196513007: Oilpan: Reapply: Remove all the RefPtrs and most of the raw pointers to style (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix assertion for global persistents Created 6 years, 9 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
« no previous file with comments | « Source/core/dom/StyleSheetCollection.h ('k') | Source/core/dom/TreeScopeStyleSheetCollection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StyleSheetCollection.cpp
diff --git a/Source/core/dom/StyleSheetCollection.cpp b/Source/core/dom/StyleSheetCollection.cpp
index 9187d67cf0b0cafb520fb161ddb145eceef0c9af..186f1a499a691bc1f2792dcbeeabdce4e6fa7107 100644
--- a/Source/core/dom/StyleSheetCollection.cpp
+++ b/Source/core/dom/StyleSheetCollection.cpp
@@ -52,7 +52,7 @@ void StyleSheetCollection::swapSheetsForSheetList(WillBeHeapVector<RefPtrWillBeM
m_styleSheetsForStyleSheetList.swap(sheets);
}
-void StyleSheetCollection::appendActiveStyleSheets(const WillBePersistentHeapVector<RefPtrWillBeMember<CSSStyleSheet> >& sheets)
+void StyleSheetCollection::appendActiveStyleSheets(const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> >& sheets)
{
m_activeAuthorStyleSheets.appendVector(sheets);
}
@@ -67,4 +67,10 @@ void StyleSheetCollection::appendSheetForList(StyleSheet* sheet)
m_styleSheetsForStyleSheetList.append(sheet);
}
+void StyleSheetCollection::trace(Visitor* visitor)
+{
+ visitor->trace(m_activeAuthorStyleSheets);
+ visitor->trace(m_styleSheetsForStyleSheetList);
+}
+
}
« no previous file with comments | « Source/core/dom/StyleSheetCollection.h ('k') | Source/core/dom/TreeScopeStyleSheetCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698