Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Unified Diff: Source/core/dom/shadow/ElementShadow.cpp

Issue 1257573002: Configurable vector capacity in blink::DistributedNodes Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/shadow/DistributedNodes.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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])
« no previous file with comments | « Source/core/dom/shadow/DistributedNodes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698