Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1264)

Unified Diff: Source/core/rendering/PaintPhase.cpp

Issue 811843003: replace COMPILE_ASSERT with static_assert in core/rendering/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/InlineTextBox.cpp ('k') | Source/core/rendering/PointerEventsHitRules.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/PaintPhase.cpp
diff --git a/Source/core/rendering/PaintPhase.cpp b/Source/core/rendering/PaintPhase.cpp
index b24895aa3de4cae0ed9dbcdb71d8604cdf27f9dd..4aa813c9a691f5372c98dc04b128db68c0c8a49f 100644
--- a/Source/core/rendering/PaintPhase.cpp
+++ b/Source/core/rendering/PaintPhase.cpp
@@ -11,7 +11,7 @@
namespace blink {
// DisplayItem types must be kept in sync with PaintPhase.
-COMPILE_ASSERT((unsigned)DisplayItem::DrawingPaintPhaseBlockBackground == (unsigned)PaintPhaseBlockBackground, DisplayItem_Type_should_stay_in_sync);
-COMPILE_ASSERT((unsigned)DisplayItem::DrawingPaintPhaseClippingMask == (unsigned)PaintPhaseClippingMask, DisplayItem_Type_should_stay_in_sync);
+static_assert((unsigned)DisplayItem::DrawingPaintPhaseBlockBackground == (unsigned)PaintPhaseBlockBackground, "DisplayItem Type should stay in sync");
+static_assert((unsigned)DisplayItem::DrawingPaintPhaseClippingMask == (unsigned)PaintPhaseClippingMask, "DisplayItem Type should stay in sync");
} // namespace blink
« no previous file with comments | « Source/core/rendering/InlineTextBox.cpp ('k') | Source/core/rendering/PointerEventsHitRules.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698