| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 | 45 |
| 46 EndClipPathDisplayItem(const DisplayItemClientWrapper& client) | 46 EndClipPathDisplayItem(const DisplayItemClientWrapper& client) |
| 47 : PairedEndDisplayItem(client, EndClipPath) { } | 47 : PairedEndDisplayItem(client, EndClipPath) { } |
| 48 | 48 |
| 49 virtual void replay(GraphicsContext&) override; | 49 virtual void replay(GraphicsContext&) override; |
| 50 virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override; | 50 virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override; |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 #if ENABLE(ASSERT) | 53 #if ENABLE(ASSERT) |
| 54 virtual bool isEndAndPairedWith(const DisplayItem& other) const override fin
al { return other.type() == BeginClipPath; } | 54 virtual bool isEndAndPairedWith(DisplayItem::Type otherType) const override
final { return otherType == BeginClipPath; } |
| 55 #endif | 55 #endif |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace blink | 58 } // namespace blink |
| 59 | 59 |
| 60 #endif // ClipPathDisplayItem_h | 60 #endif // ClipPathDisplayItem_h |
| OLD | NEW |