| Index: third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
|
| index 40d3cb6b63e7f2773b8382e8276b40b5a2921785..17a5f2c48a71ce6aa1fc2a166e6e3c44183bb985 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
|
| @@ -255,7 +255,9 @@ void GraphicsContext::endLayer() {
|
|
|
| restoreLayer();
|
|
|
| - ASSERT(m_layerCount-- > 0);
|
| +#if DCHECK_IS_ON()
|
| + DCHECK_GT(m_layerCount--, 0);
|
| +#endif
|
| }
|
|
|
| void GraphicsContext::beginRecording(const FloatRect& bounds) {
|
|
|