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 23da88b7e2b4204554ad63de20504d8a1bede3b6..11b24f03f5c53bb9a366de12cd434bde157e3d1e 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 @@ |
const HeapVector<Member<InsertionPoint>>& ShadowRoot::descendantInsertionPoints() |
{ |
- DEFINE_STATIC_LOCAL(HeapVector<Member<InsertionPoint>>, emptyList, (new HeapVector<Member<InsertionPoint>>)); |
+ DEFINE_STATIC_LOCAL(PersistentHeapVector<Member<InsertionPoint>>, emptyList, ()); |
if (m_shadowRootRareData && m_descendantInsertionPointsIsValid) |
return m_shadowRootRareData->descendantInsertionPoints(); |
@@ -349,7 +349,7 @@ |
const HeapVector<Member<HTMLSlotElement>>& ShadowRoot::descendantSlots() |
{ |
- DEFINE_STATIC_LOCAL(HeapVector<Member<HTMLSlotElement>>, emptyList, (new HeapVector<Member<HTMLSlotElement>>)); |
+ DEFINE_STATIC_LOCAL(PersistentHeapVector<Member<HTMLSlotElement>>, emptyList, ()); |
if (m_descendantSlotsIsValid) { |
ASSERT(m_shadowRootRareData); |
return m_shadowRootRareData->descendantSlots(); |