| Index: Source/core/css/CSSBasicShapes.cpp
|
| diff --git a/Source/core/css/CSSBasicShapes.cpp b/Source/core/css/CSSBasicShapes.cpp
|
| index f02c43a72ee1bc1aa147a6353f9da30eba6e2d0a..1104f176ef96fcff14c0862a34fdc729007ed307 100644
|
| --- a/Source/core/css/CSSBasicShapes.cpp
|
| +++ b/Source/core/css/CSSBasicShapes.cpp
|
| @@ -189,7 +189,7 @@ static String buildPolygonString(const WindRule& windRule, const Vector<String>&
|
| char nonZeroOpening[] = "polygon(nonzero, ";
|
| char commaSeparator[] = ", ";
|
| COMPILE_ASSERT(sizeof(evenOddOpening) == sizeof(nonZeroOpening), polygon_string_openings_have_same_length);
|
| -
|
| +
|
| // Compute the required capacity in advance to reduce allocations.
|
| size_t length = sizeof(evenOddOpening) - 1;
|
| for (size_t i = 0; i < points.size(); i += 2) {
|
|
|