Index: Source/core/dom/shadow/ShadowRoot.cpp |
diff --git a/Source/core/dom/shadow/ShadowRoot.cpp b/Source/core/dom/shadow/ShadowRoot.cpp |
index 1f5b2d83fda38f696c833624c2f05aea28b763b2..36405125555a3032dceb0cb35b082909837f7c4d 100644 |
--- a/Source/core/dom/shadow/ShadowRoot.cpp |
+++ b/Source/core/dom/shadow/ShadowRoot.cpp |
@@ -263,7 +263,7 @@ HTMLShadowElement* ShadowRoot::shadowInsertionPointOfYoungerShadowRoot() const |
return m_shadowRootRareData ? m_shadowRootRareData->shadowInsertionPointOfYoungerShadowRoot() : 0; |
} |
-void ShadowRoot::setShadowInsertionPointOfYoungerShadowRoot(PassRefPtr<HTMLShadowElement> shadowInsertionPoint) |
+void ShadowRoot::setShadowInsertionPointOfYoungerShadowRoot(PassRefPtrWillBeRawPtr<HTMLShadowElement> shadowInsertionPoint) |
{ |
if (!m_shadowRootRareData && !shadowInsertionPoint) |
return; |
@@ -306,10 +306,9 @@ void ShadowRoot::invalidateDescendantInsertionPoints() |
m_shadowRootRareData->clearDescendantInsertionPoints(); |
} |
-const Vector<RefPtr<InsertionPoint> >& ShadowRoot::descendantInsertionPoints() |
+const WillBeHeapVector<RefPtrWillBeMember<InsertionPoint> >& ShadowRoot::descendantInsertionPoints() |
{ |
- DEFINE_STATIC_LOCAL(const Vector<RefPtr<InsertionPoint> >, emptyList, ()); |
- |
+ DEFINE_STATIC_LOCAL(WillBePersistentHeapVector<RefPtrWillBeMember<InsertionPoint> >, emptyList, ()); |
if (m_shadowRootRareData && m_descendantInsertionPointsIsValid) |
return m_shadowRootRareData->descendantInsertionPoints(); |
@@ -318,7 +317,7 @@ const Vector<RefPtr<InsertionPoint> >& ShadowRoot::descendantInsertionPoints() |
if (!containsInsertionPoints()) |
return emptyList; |
- Vector<RefPtr<InsertionPoint> > insertionPoints; |
+ WillBeHeapVector<RefPtrWillBeMember<InsertionPoint> > insertionPoints; |
for (Element* element = ElementTraversal::firstWithin(*this); element; element = ElementTraversal::next(*element, this)) { |
if (element->isInsertionPoint()) |
insertionPoints.append(toInsertionPoint(element)); |