Index: Source/core/html/track/vtt/VTTCue.cpp |
diff --git a/Source/core/html/track/vtt/VTTCue.cpp b/Source/core/html/track/vtt/VTTCue.cpp |
index 5fd28fac9fbd72a97bcd3c87c213859f3769f9ae..e96b84963494dc62e91620fc17cdfe3ace7e9f28 100644 |
--- a/Source/core/html/track/vtt/VTTCue.cpp |
+++ b/Source/core/html/track/vtt/VTTCue.cpp |
@@ -60,14 +60,14 @@ static const int undefinedSize = -1; |
static const CSSValueID displayWritingModeMap[] = { |
CSSValueHorizontalTb, CSSValueVerticalRl, CSSValueVerticalLr |
}; |
-COMPILE_ASSERT(WTF_ARRAY_LENGTH(displayWritingModeMap) == VTTCue::NumberOfWritingDirections, |
- displayWritingModeMap_has_wrong_size); |
+static_assert(WTF_ARRAY_LENGTH(displayWritingModeMap) == VTTCue::NumberOfWritingDirections, |
+ "displayWritingModeMap should have the same number of elements as VTTCue::NumberOfWritingDirections"); |
static const CSSValueID displayAlignmentMap[] = { |
CSSValueStart, CSSValueCenter, CSSValueEnd, CSSValueLeft, CSSValueRight |
}; |
-COMPILE_ASSERT(WTF_ARRAY_LENGTH(displayAlignmentMap) == VTTCue::NumberOfAlignments, |
- displayAlignmentMap_has_wrong_size); |
+static_assert(WTF_ARRAY_LENGTH(displayAlignmentMap) == VTTCue::NumberOfAlignments, |
+ "displayAlignmentMap should have the same number of elements as VTTCue::NumberOfAlignments"); |
static const String& startKeyword() |
{ |