Index: Source/web/mac/WebScrollbarTheme.mm |
diff --git a/Source/web/mac/WebScrollbarTheme.mm b/Source/web/mac/WebScrollbarTheme.mm |
index d77b95bccfd13350d998d08fa98957edf581bfb6..ccdf09d8c6cc4272a057cb6be2da1fc7eb89334b 100644 |
--- a/Source/web/mac/WebScrollbarTheme.mm |
+++ b/Source/web/mac/WebScrollbarTheme.mm |
@@ -40,8 +40,8 @@ using namespace blink; |
namespace blink { |
-COMPILE_ASSERT(ScrollerStyleLegacy == NSScrollerStyleLegacy, ScrollerStyle_Legacy_must_be_equal); |
-COMPILE_ASSERT(ScrollerStyleOverlay == NSScrollerStyleOverlay, ScrollerStyle_Overlay_must_be_equal); |
+static_assert(ScrollerStyleLegacy == NSScrollerStyleLegacy, "ScrollerStyleLegacy must match NSScrollerStyleLegacy"); |
+static_assert(ScrollerStyleOverlay == NSScrollerStyleOverlay, "ScrollerStyleOverlay must match NSScrollerStyleOverlay"); |
void WebScrollbarTheme::updateScrollbars( |
float initialButtonDelay, float autoscrollButtonDelay, |