Index: Source/core/css/CSSBasicShapes.cpp |
diff --git a/Source/core/css/CSSBasicShapes.cpp b/Source/core/css/CSSBasicShapes.cpp |
index e257f609ed4d6bb4b816512fdc43cc469cbd2c1b..1eda60725e516879c168a24e552d93e872aa9c70 100644 |
--- a/Source/core/css/CSSBasicShapes.cpp |
+++ b/Source/core/css/CSSBasicShapes.cpp |
@@ -341,9 +341,9 @@ static String buildPolygonString(const WindRule& windRule, const Vector<String>& |
StringBuilder result; |
const char evenOddOpening[] = "polygon(evenodd, "; |
- const char nonZeroOpening[] = "polygon(nonzero, "; |
+ const char nonZeroOpening[] = "polygon("; |
const char commaSeparator[] = ", "; |
- COMPILE_ASSERT(sizeof(evenOddOpening) == sizeof(nonZeroOpening), polygon_string_openings_have_same_length); |
+ 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; |