Chromium Code Reviews| Index: Source/core/dom/StyleSheetCollection.cpp |
| diff --git a/Source/core/dom/StyleSheetCollection.cpp b/Source/core/dom/StyleSheetCollection.cpp |
| index 853a300bbf5f77d90d41fad246f678bfb4cf53e5..28ac089b5c7b23bbd8d5683d138f14fafdfed3f4 100644 |
| --- a/Source/core/dom/StyleSheetCollection.cpp |
| +++ b/Source/core/dom/StyleSheetCollection.cpp |
| @@ -53,6 +53,13 @@ void StyleSheetCollectionBase::swap(StyleSheetCollectionBase& other) |
| m_activeAuthorStyleSheets.swap(other.m_activeAuthorStyleSheets); |
| } |
| +void StyleSheetCollectionBase::setSheetsForSheetList(const Vector<RefPtr<StyleSheet> >& sheets) |
| +{ |
| + // Only called for collection of HTML Imports, that never has active sheets. |
| + ASSERT(m_activeAuthorStyleSheets.isEmpty()); |
| + m_styleSheetsForStyleSheetList = sheets; |
|
esprehn
2014/01/23 07:51:03
swap() I think is what you want, this currently do
Hajime Morrita
2014/01/24 01:25:51
Done.
|
| +} |
| + |
| void StyleSheetCollectionBase::appendActiveStyleSheets(const Vector<RefPtr<CSSStyleSheet> >& sheets) |
| { |
| m_activeAuthorStyleSheets.append(sheets); |