This source file includes following definitions.
- swap
- swapSheetsForSheetList
- appendActiveStyleSheets
- appendActiveStyleSheet
- appendSheetForList
- trace
#include "config.h"
#include "core/dom/StyleSheetCollection.h"
#include "core/css/CSSStyleSheet.h"
namespace WebCore {
StyleSheetCollection::StyleSheetCollection()
{
}
StyleSheetCollection::~StyleSheetCollection()
{
}
void StyleSheetCollection::swap(StyleSheetCollection& other)
{
m_styleSheetsForStyleSheetList.swap(other.m_styleSheetsForStyleSheetList);
m_activeAuthorStyleSheets.swap(other.m_activeAuthorStyleSheets);
}
void StyleSheetCollection::swapSheetsForSheetList(WillBeHeapVector<RefPtrWillBeMember<StyleSheet> >& sheets)
{
ASSERT(m_activeAuthorStyleSheets.isEmpty());
m_styleSheetsForStyleSheetList.swap(sheets);
}
void StyleSheetCollection::appendActiveStyleSheets(const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> >& sheets)
{
m_activeAuthorStyleSheets.appendVector(sheets);
}
void StyleSheetCollection::appendActiveStyleSheet(CSSStyleSheet* sheet)
{
m_activeAuthorStyleSheets.append(sheet);
}
void StyleSheetCollection::appendSheetForList(StyleSheet* sheet)
{
m_styleSheetsForStyleSheetList.append(sheet);
}
void StyleSheetCollection::trace(Visitor* visitor)
{
visitor->trace(m_activeAuthorStyleSheets);
visitor->trace(m_styleSheetsForStyleSheetList);
}
}