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

Unified Diff: third_party/WebKit/Source/platform/graphics/InterceptingCanvas.h

Issue 2807923002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/graphics (Closed)
Patch Set: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/graphics Created 3 years, 8 months 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/InterceptingCanvas.h
diff --git a/third_party/WebKit/Source/platform/graphics/InterceptingCanvas.h b/third_party/WebKit/Source/platform/graphics/InterceptingCanvas.h
index 75a7b4c59ef41748ccb41ef7acb387337c807113..b8cb06a3aa59a24b602129f6ced4f899513dd91e 100644
--- a/third_party/WebKit/Source/platform/graphics/InterceptingCanvas.h
+++ b/third_party/WebKit/Source/platform/graphics/InterceptingCanvas.h
@@ -54,7 +54,7 @@ class InterceptingCanvasBase : public SkCanvas {
}
~CanvasInterceptorBase() {
- ASSERT(m_canvas->m_callNestingDepth > 0);
+ DCHECK_GT(m_canvas->m_callNestingDepth, 0u);
if (!--m_canvas->m_callNestingDepth)
m_canvas->m_callCount++;
}

Powered by Google App Engine
This is Rietveld 408576698