#include "core/dom/Document.h"
#include "core/dom/DocumentOrderedList.h"
#include "core/dom/DocumentStyleSheetCollection.h"
-#include "heap/Handle.h"
+#include "platform/heap/Handle.h"
#include "wtf/FastAllocBase.h"
#include "wtf/ListHashSet.h"
#include "wtf/RefPtr.h"
~StyleEngine();
+#if !ENABLE(OILPAN)
void detachFromDocument();
+#endif
const WillBeHeapVector<RefPtrWillBeMember<StyleSheet> >& styleSheetsForStyleSheetList(TreeScope&);
const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> >& activeAuthorStyleSheets() const;
bool isMaster() const { return m_isMaster; }
Document* master();
+ Document& document() const { return *m_document; }
typedef ListHashSet<TreeScope*, 16> TreeScopeSet;
static void insertTreeScopeInDocumentOrder(TreeScopeSet&, TreeScope*);
static PassRefPtrWillBeRawPtr<CSSStyleSheet> parseSheet(Element*, const String& text, TextPosition startPosition, bool createdByParser);
- Document& m_document;
+ RawPtrWillBeMember<Document> m_document;
bool m_isMaster;
// Track the number of currently loading top-level stylesheets needed for rendering.
WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> > m_authorStyleSheets;
DocumentStyleSheetCollection m_documentStyleSheetCollection;
- WillBeHeapHashMap<TreeScope*, OwnPtrWillBeMember<ShadowTreeStyleSheetCollection> > m_styleSheetCollectionMap;
+ typedef WillBeHeapHashMap<RawPtrWillBeWeakMember<TreeScope>, OwnPtrWillBeMember<ShadowTreeStyleSheetCollection> > StyleSheetCollectionMap;
+ StyleSheetCollectionMap m_styleSheetCollectionMap;
bool m_documentScopeDirty;
TreeScopeSet m_dirtyTreeScopes;
bool m_didCalculateResolver;
OwnPtrWillBeMember<StyleResolver> m_resolver;
- RefPtr<CSSFontSelector> m_fontSelector;
+ RefPtrWillBeMember<CSSFontSelector> m_fontSelector;
WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_textToSheetCache;
WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sheetToTextCache;