Chromium Code Reviews| 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; |
|
Alexander Alekseev
2016/11/18 22:32:15
This is declared in the base class only if NDEBUG
|
| #endif |