Index: Source/core/dom/shadow/ElementShadow.cpp |
diff --git a/Source/core/dom/shadow/ElementShadow.cpp b/Source/core/dom/shadow/ElementShadow.cpp |
index 3689fac8e303d73ce5df66cfa16270149711e8bc..cc58a980e566d025f3d4d63304be9dc95a509920 100644 |
--- a/Source/core/dom/shadow/ElementShadow.cpp |
+++ b/Source/core/dom/shadow/ElementShadow.cpp |
@@ -85,7 +85,7 @@ inline void DistributionPool::populateChildren(const ContainerNode& parent) |
void DistributionPool::distributeTo(InsertionPoint* insertionPoint, ElementShadow* elementShadow) |
{ |
- DistributedNodes distributedNodes; |
+ DistributedNodes distributedNodes(m_nodes.size()); |
for (size_t i = 0; i < m_nodes.size(); ++i) { |
if (m_distributed[i]) |