Index: third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp |
diff --git a/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp b/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp |
index 11b24f03f5c53bb9a366de12cd434bde157e3d1e..23da88b7e2b4204554ad63de20504d8a1bede3b6 100644 |
--- a/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp |
+++ b/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp |
@@ -297,7 +297,7 @@ void ShadowRoot::invalidateDescendantInsertionPoints() |
const HeapVector<Member<InsertionPoint>>& ShadowRoot::descendantInsertionPoints() |
{ |
- DEFINE_STATIC_LOCAL(PersistentHeapVector<Member<InsertionPoint>>, emptyList, ()); |
+ DEFINE_STATIC_LOCAL(HeapVector<Member<InsertionPoint>>, emptyList, (new HeapVector<Member<InsertionPoint>>)); |
if (m_shadowRootRareData && m_descendantInsertionPointsIsValid) |
return m_shadowRootRareData->descendantInsertionPoints(); |
@@ -349,7 +349,7 @@ unsigned ShadowRoot::descendantSlotCount() const |
const HeapVector<Member<HTMLSlotElement>>& ShadowRoot::descendantSlots() |
{ |
- DEFINE_STATIC_LOCAL(PersistentHeapVector<Member<HTMLSlotElement>>, emptyList, ()); |
+ DEFINE_STATIC_LOCAL(HeapVector<Member<HTMLSlotElement>>, emptyList, (new HeapVector<Member<HTMLSlotElement>>)); |
if (m_descendantSlotsIsValid) { |
ASSERT(m_shadowRootRareData); |
return m_shadowRootRareData->descendantSlots(); |