| Index: Source/core/dom/StyleEngine.cpp
|
| diff --git a/Source/core/dom/StyleEngine.cpp b/Source/core/dom/StyleEngine.cpp
|
| index 756d3cc2b52e6d6e87cda82202c1ce515588d56e..d61529fe4cfa50c51d7bfa19d99f9dbce99d78ab 100644
|
| --- a/Source/core/dom/StyleEngine.cpp
|
| +++ b/Source/core/dom/StyleEngine.cpp
|
| @@ -167,9 +167,9 @@ TreeScopeStyleSheetCollection* StyleEngine::ensureStyleSheetCollectionFor(TreeSc
|
| if (treeScope == m_document)
|
| return &m_documentStyleSheetCollection;
|
|
|
| - HashMap<TreeScope*, OwnPtr<TreeScopeStyleSheetCollection> >::AddResult result = m_styleSheetCollectionMap.add(&treeScope, nullptr);
|
| + WillBeHeapHashMap<TreeScope*, OwnPtrWillBeMember<ShadowTreeStyleSheetCollection> >::AddResult result = m_styleSheetCollectionMap.add(&treeScope, nullptr);
|
| if (result.isNewEntry)
|
| - result.storedValue->value = adoptPtr(new ShadowTreeStyleSheetCollection(toShadowRoot(treeScope)));
|
| + result.storedValue->value = adoptPtrWillBeNoop(new ShadowTreeStyleSheetCollection(toShadowRoot(treeScope)));
|
| return result.storedValue->value.get();
|
| }
|
|
|
| @@ -178,7 +178,7 @@ TreeScopeStyleSheetCollection* StyleEngine::styleSheetCollectionFor(TreeScope& t
|
| if (treeScope == m_document)
|
| return &m_documentStyleSheetCollection;
|
|
|
| - HashMap<TreeScope*, OwnPtr<TreeScopeStyleSheetCollection> >::iterator it = m_styleSheetCollectionMap.find(&treeScope);
|
| + WillBeHeapHashMap<TreeScope*, OwnPtrWillBeMember<ShadowTreeStyleSheetCollection> >::iterator it = m_styleSheetCollectionMap.find(&treeScope);
|
| if (it == m_styleSheetCollectionMap.end())
|
| return 0;
|
| return it->value.get();
|
| @@ -586,9 +586,9 @@ void StyleEngine::markDocumentDirty()
|
| m_document.import()->master()->styleEngine()->markDocumentDirty();
|
| }
|
|
|
| -PassRefPtr<CSSStyleSheet> StyleEngine::createSheet(Element* e, const String& text, TextPosition startPosition, bool createdByParser)
|
| +PassRefPtrWillBeRawPtr<CSSStyleSheet> StyleEngine::createSheet(Element* e, const String& text, TextPosition startPosition, bool createdByParser)
|
| {
|
| - RefPtr<CSSStyleSheet> styleSheet;
|
| + RefPtrWillBeRawPtr<CSSStyleSheet> styleSheet;
|
|
|
| e->document().styleEngine()->addPendingSheet();
|
|
|
| @@ -616,9 +616,9 @@ PassRefPtr<CSSStyleSheet> StyleEngine::createSheet(Element* e, const String& tex
|
| return styleSheet;
|
| }
|
|
|
| -PassRefPtr<CSSStyleSheet> StyleEngine::parseSheet(Element* e, const String& text, TextPosition startPosition, bool createdByParser)
|
| +PassRefPtrWillBeRawPtr<CSSStyleSheet> StyleEngine::parseSheet(Element* e, const String& text, TextPosition startPosition, bool createdByParser)
|
| {
|
| - RefPtr<CSSStyleSheet> styleSheet;
|
| + RefPtrWillBeRawPtr<CSSStyleSheet> styleSheet;
|
| styleSheet = CSSStyleSheet::createInline(e, KURL(), startPosition, e->document().inputEncoding());
|
| styleSheet->contents()->parseStringAtPosition(text, startPosition, createdByParser);
|
| return styleSheet;
|
| @@ -638,6 +638,8 @@ void StyleEngine::trace(Visitor* visitor)
|
| {
|
| visitor->trace(m_injectedAuthorStyleSheets);
|
| visitor->trace(m_authorStyleSheets);
|
| + visitor->trace(m_documentStyleSheetCollection);
|
| + visitor->trace(m_styleSheetCollectionMap);
|
| }
|
|
|
| }
|
|
|