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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp

Issue 2530493002: WebKit: make #if DCHECK_IS_ON consistent in third_party/WebKit/Source/platform/ (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/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) {

Powered by Google App Engine
This is Rietveld 408576698