| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "core/rendering/PaintPhase.h" | 6 #include "core/rendering/PaintPhase.h" |
| 7 | 7 |
| 8 #include "platform/graphics/paint/DisplayItem.h" | 8 #include "platform/graphics/paint/DisplayItem.h" |
| 9 #include "wtf/Assertions.h" | 9 #include "wtf/Assertions.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 // DisplayItem types must be kept in sync with PaintPhase. | 13 // DisplayItem types must be kept in sync with PaintPhase. |
| 14 COMPILE_ASSERT((unsigned)DisplayItem::DrawingPaintPhaseBlockBackground == (unsig
ned)PaintPhaseBlockBackground, DisplayItem_Type_should_stay_in_sync); | 14 static_assert((unsigned)DisplayItem::DrawingPaintPhaseBlockBackground == (unsign
ed)PaintPhaseBlockBackground, "DisplayItem Type should stay in sync"); |
| 15 COMPILE_ASSERT((unsigned)DisplayItem::DrawingPaintPhaseClippingMask == (unsigned
)PaintPhaseClippingMask, DisplayItem_Type_should_stay_in_sync); | 15 static_assert((unsigned)DisplayItem::DrawingPaintPhaseClippingMask == (unsigned)
PaintPhaseClippingMask, "DisplayItem Type should stay in sync"); |
| 16 | 16 |
| 17 } // namespace blink | 17 } // namespace blink |
| OLD | NEW |