Index: third_party/WebKit/WebCore/css/CSSStyleDeclaration.cpp |
=================================================================== |
--- third_party/WebKit/WebCore/css/CSSStyleDeclaration.cpp (revision 9118) |
+++ third_party/WebKit/WebCore/css/CSSStyleDeclaration.cpp (working copy) |
@@ -142,7 +142,7 @@ |
PassRefPtr<CSSMutableStyleDeclaration> CSSStyleDeclaration::copyPropertiesInSet(const int* set, unsigned length) const |
{ |
Vector<CSSProperty> list; |
- list.reserveCapacity(length); |
+ list.reserveInitialCapacity(length); |
unsigned variableDependentValueCount = 0; |
for (unsigned i = 0; i < length; i++) { |
RefPtr<CSSValue> value = getPropertyCSSValue(set[i]); |