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

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

Issue 2513893002: Make ifdefs consistent in WebKit/Source/core/ (Closed)
Patch Set: Created 4 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/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 69d04570510f9311d02c16038e32b708bf2da1ce..9f197bc38ab8640912d460ea10da6151763bb086 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
@@ -336,7 +336,7 @@ class PLATFORM_EXPORT DisplayItem {
virtual bool isBegin() const { return false; }
virtual bool isEnd() const { return false; }
-#if DCHECK_IS_ON()
+#ifdef NDEBUG
virtual bool isEndAndPairedWith(DisplayItem::Type otherType) const {
return false;
}
@@ -418,7 +418,7 @@ class PLATFORM_EXPORT PairedEndDisplayItem : public DisplayItem {
size_t derivedSize)
: DisplayItem(client, type, derivedSize) {}
-#if ENABLE(ASSERT)
+#ifdef NDEBUG
bool isEndAndPairedWith(DisplayItem::Type otherType) const override = 0;
#endif

Powered by Google App Engine
This is Rietveld 408576698