Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/SubsequenceDisplayItem.h

Issue 1425593007: Separate display item clients for negative and normal/positive z-order children (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Struct DisplayItemClient Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 dc7f45138bdf87597e6238b4d445cd73d543d311..140ff4d0c213fe165b7b9dbda8c01804b5f20893 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/SubsequenceDisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/SubsequenceDisplayItem.h
@@ -13,25 +13,21 @@ namespace blink {
class BeginSubsequenceDisplayItem final : public PairedBeginDisplayItem {
public:
- BeginSubsequenceDisplayItem(const DisplayItemClientWrapper& client, DisplayItem::Type type)
- : PairedBeginDisplayItem(client, type, sizeof(*this))
- {
- ASSERT(DisplayItem::isSubsequenceType(type));
- }
+ BeginSubsequenceDisplayItem(const DisplayItemClientWrapper& client)
+ : PairedBeginDisplayItem(client, Subsequence, sizeof(*this))
+ { }
};
class EndSubsequenceDisplayItem final : public PairedEndDisplayItem {
public:
- EndSubsequenceDisplayItem(const DisplayItemClientWrapper& client, DisplayItem::Type type)
- : PairedEndDisplayItem(client, type, sizeof(*this))
- {
- ASSERT(DisplayItem::isEndSubsequenceType(type));
- }
+ EndSubsequenceDisplayItem(const DisplayItemClientWrapper& client)
+ : PairedEndDisplayItem(client, EndSubsequence, sizeof(*this))
+ { }
#if ENABLE(ASSERT)
bool isEndAndPairedWith(DisplayItem::Type otherType) const final
{
- return otherType == DisplayItem::endSubsequenceTypeToSubsequenceType(type());
+ return type() == EndSubsequence && otherType == Subsequence;
}
#endif
};

Powered by Google App Engine
This is Rietveld 408576698