Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 ClipPathDisplayItem_h | 5 #ifndef ClipPathDisplayItem_h |
| 6 #define ClipPathDisplayItem_h | 6 #define ClipPathDisplayItem_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/graphics/Path.h" | 9 #include "platform/graphics/Path.h" |
| 10 #include "platform/graphics/paint/DisplayItem.h" | 10 #include "platform/graphics/paint/DisplayItem.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 : public PairedEndDisplayItem { | 43 : public PairedEndDisplayItem { |
| 44 public: | 44 public: |
| 45 EndClipPathDisplayItem(const DisplayItemClient& client) | 45 EndClipPathDisplayItem(const DisplayItemClient& client) |
| 46 : PairedEndDisplayItem(client, kEndClipPath, sizeof(*this)) {} | 46 : PairedEndDisplayItem(client, kEndClipPath, sizeof(*this)) {} |
| 47 | 47 |
| 48 void replay(GraphicsContext&) const override; | 48 void replay(GraphicsContext&) const override; |
| 49 void appendToWebDisplayItemList(const IntRect&, | 49 void appendToWebDisplayItemList(const IntRect&, |
| 50 WebDisplayItemList*) const override; | 50 WebDisplayItemList*) const override; |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 #if ENABLE(ASSERT) | 53 #ifdef NDEBUG |
| 54 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { | 54 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { |
|
Alexander Alekseev
2016/11/18 22:32:15
This is declared in the base class only if DCHECK_
| |
| 55 return otherType == kBeginClipPath; | 55 return otherType == kBeginClipPath; |
| 56 } | 56 } |
| 57 #endif | 57 #endif |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace blink | 60 } // namespace blink |
| 61 | 61 |
| 62 #endif // ClipPathDisplayItem_h | 62 #endif // ClipPathDisplayItem_h |
| OLD | NEW |