This source file includes following definitions.
- m_visitedDocuments
- appendActiveStyleSheets
- appendActiveStyleSheet
- appendSheetForList
#include "config.h"
#include "core/dom/DocumentStyleSheetCollector.h"
#include "core/css/CSSStyleSheet.h"
#include "core/css/StyleSheet.h"
#include "core/dom/DocumentStyleSheetCollection.h"
namespace WebCore {
DocumentStyleSheetCollector::DocumentStyleSheetCollector(WillBeHeapVector<RefPtrWillBeMember<StyleSheet> >& sheetsForList, WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> >& activeList, HashSet<Document*>& visitedDocuments)
: m_styleSheetsForStyleSheetList(sheetsForList)
, m_activeAuthorStyleSheets(activeList)
, m_visitedDocuments(visitedDocuments)
{
}
DocumentStyleSheetCollector::~DocumentStyleSheetCollector()
{
}
void DocumentStyleSheetCollector::appendActiveStyleSheets(const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> >& sheets)
{
m_activeAuthorStyleSheets.appendVector(sheets);
}
void DocumentStyleSheetCollector::appendActiveStyleSheet(CSSStyleSheet* sheet)
{
m_activeAuthorStyleSheets.append(sheet);
}
void DocumentStyleSheetCollector::appendSheetForList(StyleSheet* sheet)
{
m_styleSheetsForStyleSheetList.append(sheet);
}
ActiveDocumentStyleSheetCollector::ActiveDocumentStyleSheetCollector(StyleSheetCollection& collection)
: DocumentStyleSheetCollector(collection.m_styleSheetsForStyleSheetList, collection.m_activeAuthorStyleSheets, m_visitedDocuments)
{
}
ImportedDocumentStyleSheetCollector::ImportedDocumentStyleSheetCollector(DocumentStyleSheetCollector& collector, WillBeHeapVector<RefPtrWillBeMember<StyleSheet> >& sheetForList)
: DocumentStyleSheetCollector(sheetForList, collector.m_activeAuthorStyleSheets, collector.m_visitedDocuments)
{
}
}