Index: Source/core/dom/shadow/ShadowRoot.cpp |
diff --git a/Source/core/dom/shadow/ShadowRoot.cpp b/Source/core/dom/shadow/ShadowRoot.cpp |
index 81648c7aac992663e533d2def22c576df7296d84..7a6aba84f7c54c8292bed5f7984c1974f4938cb0 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)); |