| 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 #ifndef FloatClipDisplayItem_h | 5 #ifndef FloatClipDisplayItem_h |
| 6 #define FloatClipDisplayItem_h | 6 #define FloatClipDisplayItem_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/geometry/FloatRect.h" | 9 #include "platform/geometry/FloatRect.h" |
| 10 #include "platform/graphics/paint/DisplayItem.h" | 10 #include "platform/graphics/paint/DisplayItem.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 EndFloatClipDisplayItem(const DisplayItemClient& client, Type type) | 45 EndFloatClipDisplayItem(const DisplayItemClient& client, Type type) |
| 46 : PairedEndDisplayItem(client, type, sizeof(*this)) { | 46 : PairedEndDisplayItem(client, type, sizeof(*this)) { |
| 47 ASSERT(isEndFloatClipType(type)); | 47 ASSERT(isEndFloatClipType(type)); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void replay(GraphicsContext&) const override; | 50 void replay(GraphicsContext&) const override; |
| 51 void appendToWebDisplayItemList(const IntRect&, | 51 void appendToWebDisplayItemList(const IntRect&, |
| 52 WebDisplayItemList*) const override; | 52 WebDisplayItemList*) const override; |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 #if ENABLE(ASSERT) | 55 #if DCHECK_IS_ON() |
| 56 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { | 56 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { |
| 57 return DisplayItem::isFloatClipType(otherType); | 57 return DisplayItem::isFloatClipType(otherType); |
| 58 } | 58 } |
| 59 #endif | 59 #endif |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace blink | 62 } // namespace blink |
| 63 | 63 |
| 64 #endif // FloatClipDisplayItem_h | 64 #endif // FloatClipDisplayItem_h |
| OLD | NEW |