Chromium Code Reviews| Index: third_party/WebKit/WebCore/editing/markup.cpp |
| =================================================================== |
| --- third_party/WebKit/WebCore/editing/markup.cpp (revision 9118) |
| +++ third_party/WebKit/WebCore/editing/markup.cpp (working copy) |
| @@ -690,7 +690,7 @@ |
| length += postMarkups[i].length(); |
| Vector<UChar> result; |
| - result.reserveCapacity(length); |
| + result.reserveInitialCapacity(length); |
| for (size_t i = preCount; i > 0; --i) |
| append(result, preMarkups[i - 1]); |