summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/mac/webwidget_host.mm
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/tools/test_shell/mac/webwidget_host.mm')
-rw-r--r--webkit/tools/test_shell/mac/webwidget_host.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/mac/webwidget_host.mm b/webkit/tools/test_shell/mac/webwidget_host.mm
index cfd8ab8..b62f2fc 100644
--- a/webkit/tools/test_shell/mac/webwidget_host.mm
+++ b/webkit/tools/test_shell/mac/webwidget_host.mm
@@ -259,7 +259,9 @@ void WebWidgetHost::ResetScrollRect() {
}
void WebWidgetHost::PaintRect(const gfx::Rect& rect) {
+#ifndef NDEBUG
DCHECK(!painting_);
+#endif
DCHECK(canvas_.get());
set_painting(true);