Index: Source/core/css/CSSRule.cpp |
diff --git a/Source/core/css/CSSRule.cpp b/Source/core/css/CSSRule.cpp |
index 426b7681d36f67a0fb6bc56bff35c6969257b92c..8527d5275c330a50c5fe5586f82c5d2499c5c23a 100644 |
--- a/Source/core/css/CSSRule.cpp |
+++ b/Source/core/css/CSSRule.cpp |
@@ -35,9 +35,9 @@ struct SameSizeAsCSSRule : public RefCountedWillBeGarbageCollectedFinalized<Same |
void* pointerUnion; |
}; |
-COMPILE_ASSERT(sizeof(CSSRule) == sizeof(SameSizeAsCSSRule), CSSRule_should_stay_small); |
+static_assert(sizeof(CSSRule) == sizeof(SameSizeAsCSSRule), "CSSRule should stay small"); |
-COMPILE_ASSERT(StyleRuleBase::Viewport == static_cast<StyleRuleBase::Type>(CSSRule::VIEWPORT_RULE), enums_should_match); |
+static_assert(StyleRuleBase::Viewport == static_cast<StyleRuleBase::Type>(CSSRule::VIEWPORT_RULE), "enums should match"); |
void CSSRule::setCSSText(const String&) |
{ |