| Index: third_party/WebKit/Source/platform/graphics/paint/SubsequenceDisplayItem.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/SubsequenceDisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/SubsequenceDisplayItem.h
|
| index fda7a832b1d09ea3745666f113e39379cd2e1f7a..dc7f45138bdf87597e6238b4d445cd73d543d311 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/SubsequenceDisplayItem.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/SubsequenceDisplayItem.h
|
| @@ -13,19 +13,26 @@ namespace blink {
|
|
|
| class BeginSubsequenceDisplayItem final : public PairedBeginDisplayItem {
|
| public:
|
| - BeginSubsequenceDisplayItem(const DisplayItemClientWrapper& client)
|
| - : PairedBeginDisplayItem(client, BeginSubsequence, sizeof(*this))
|
| - { }
|
| + BeginSubsequenceDisplayItem(const DisplayItemClientWrapper& client, DisplayItem::Type type)
|
| + : PairedBeginDisplayItem(client, type, sizeof(*this))
|
| + {
|
| + ASSERT(DisplayItem::isSubsequenceType(type));
|
| + }
|
| };
|
|
|
| class EndSubsequenceDisplayItem final : public PairedEndDisplayItem {
|
| public:
|
| - EndSubsequenceDisplayItem(const DisplayItemClientWrapper& client)
|
| - : PairedEndDisplayItem(client, EndSubsequence, sizeof(*this))
|
| - { }
|
| + EndSubsequenceDisplayItem(const DisplayItemClientWrapper& client, DisplayItem::Type type)
|
| + : PairedEndDisplayItem(client, type, sizeof(*this))
|
| + {
|
| + ASSERT(DisplayItem::isEndSubsequenceType(type));
|
| + }
|
|
|
| #if ENABLE(ASSERT)
|
| - bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return otherType == BeginSubsequence; }
|
| + bool isEndAndPairedWith(DisplayItem::Type otherType) const final
|
| + {
|
| + return otherType == DisplayItem::endSubsequenceTypeToSubsequenceType(type());
|
| + }
|
| #endif
|
| };
|
|
|
|
|