diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-15 21:13:50 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-15 21:13:50 +0000 |
commit | 9e82059e9496cd01dc4766197196c9d3330fa842 (patch) | |
tree | e55451ba9ecc2f7f405268452cb4524692746639 /webkit/tools/test_shell/mac | |
parent | 856a8eedd555499c602eaf58b43d986a56f46512 (diff) | |
download | chromium_src-9e82059e9496cd01dc4766197196c9d3330fa842.zip chromium_src-9e82059e9496cd01dc4766197196c9d3330fa842.tar.gz chromium_src-9e82059e9496cd01dc4766197196c9d3330fa842.tar.bz2 |
painting_ only exists in debug mode, so only check it in debug mode
Review URL: http://codereview.chromium.org/7365
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3419 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/mac')
-rw-r--r-- | webkit/tools/test_shell/mac/webwidget_host.mm | 2 |
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); |