OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef SubsequenceDisplayItem_h | |
6 #define SubsequenceDisplayItem_h | |
7 | |
8 #include "platform/geometry/FloatRect.h" | |
9 #include "platform/graphics/paint/DisplayItem.h" | |
10 #include "platform/wtf/Assertions.h" | |
11 | |
12 namespace blink { | |
13 | |
14 class BeginSubsequenceDisplayItem final : public PairedBeginDisplayItem { | |
15 public: | |
16 BeginSubsequenceDisplayItem(const DisplayItemClient& client) | |
17 : PairedBeginDisplayItem(client, kSubsequence, sizeof(*this)) {} | |
18 }; | |
19 | |
20 class EndSubsequenceDisplayItem final : public PairedEndDisplayItem { | |
21 public: | |
22 EndSubsequenceDisplayItem(const DisplayItemClient& client) | |
23 : PairedEndDisplayItem(client, kEndSubsequence, sizeof(*this)) {} | |
24 | |
25 #if DCHECK_IS_ON() | |
26 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { | |
27 return getType() == kEndSubsequence && otherType == kSubsequence; | |
28 } | |
29 #endif | |
30 }; | |
31 | |
32 } // namespace blink | |
33 | |
34 #endif // SubsequenceDisplayItem_h | |
OLD | NEW |