Index: third_party/WebKit/WebCore/platform/network/mac/FormDataStreamMac.mm |
=================================================================== |
--- third_party/WebKit/WebCore/platform/network/mac/FormDataStreamMac.mm (revision 9118) |
+++ third_party/WebKit/WebCore/platform/network/mac/FormDataStreamMac.mm (working copy) |
@@ -204,7 +204,7 @@ |
// Append in reverse order since we remove elements from the end. |
size_t size = formData->elements().size(); |
- newInfo->remainingElements.reserveCapacity(size); |
+ newInfo->remainingElements.reserveInitialCapacity(size); |
for (size_t i = 0; i < size; ++i) |
newInfo->remainingElements.append(formData->elements()[size - i - 1]); |