| Index: third_party/WebKit/Source/core/layout/ClipRectsCache.h
|
| diff --git a/third_party/WebKit/Source/core/layout/ClipRectsCache.h b/third_party/WebKit/Source/core/layout/ClipRectsCache.h
|
| index f678226b12da8b33e28069f9cbb5312fa03d4598..549a3ee4bfb81f87c042ddee9c6ff051a02ef4b1 100644
|
| --- a/third_party/WebKit/Source/core/layout/ClipRectsCache.h
|
| +++ b/third_party/WebKit/Source/core/layout/ClipRectsCache.h
|
| @@ -7,7 +7,7 @@
|
|
|
| #include "core/layout/ClipRects.h"
|
|
|
| -#if ENABLE(ASSERT)
|
| +#if DCHECK_IS_ON()
|
| #include "core/layout/ScrollEnums.h" // For OverlayScrollbarClipBehavior.
|
| #endif
|
|
|
| @@ -37,25 +37,25 @@ public:
|
| struct Entry {
|
| Entry()
|
| : root(nullptr)
|
| -#if ENABLE(ASSERT)
|
| +#if DCHECK_IS_ON()
|
| , overlayScrollbarClipBehavior(IgnoreOverlayScrollbarSize)
|
| #endif
|
| {
|
| }
|
| const PaintLayer* root;
|
| RefPtr<ClipRects> clipRects;
|
| -#if ENABLE(ASSERT)
|
| +#if DCHECK_IS_ON()
|
| OverlayScrollbarClipBehavior overlayScrollbarClipBehavior;
|
| #endif
|
| };
|
| Entry& get(ClipRectsCacheSlot slot)
|
| {
|
| - ASSERT(slot < NumberOfClipRectsCacheSlots);
|
| + DCHECK(slot < NumberOfClipRectsCacheSlots);
|
| return m_entries[slot];
|
| }
|
| void clear(ClipRectsCacheSlot slot)
|
| {
|
| - ASSERT(slot < NumberOfClipRectsCacheSlots);
|
| + DCHECK(slot < NumberOfClipRectsCacheSlots);
|
| m_entries[slot] = Entry();
|
| }
|
| private:
|
|
|