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

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

Issue 1978313003: Reland of Client side display item cache flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 4 years, 7 months 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/DisplayItem.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
index b0dd949f769f1e3f4079a5e286946f28319d4834..09dbf633de5a044fc8562ba5098ad90731426857 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
@@ -330,7 +330,7 @@ public:
virtual bool isBegin() const { return false; }
virtual bool isEnd() const { return false; }
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
virtual bool isEndAndPairedWith(DisplayItem::Type otherType) const { return false; }
virtual bool equals(const DisplayItem& other) const
{
@@ -340,13 +340,13 @@ public:
&& m_derivedSize == other.m_derivedSize
&& m_skippedCache == other.m_skippedCache;
}
+#endif
// True if the client is non-null. Because m_client is const, this should
// never be false except when we explicitly create a tombstone/"dead display
// item" as part of moving an item from one list to another (see:
// DisplayItemList::appendByMoving).
bool hasValidClient() const { return m_client; }
-#endif
virtual bool drawsContent() const { return false; }

Powered by Google App Engine
This is Rietveld 408576698