summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell
diff options
context:
space:
mode:
authoramanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-16 21:25:16 +0000
committeramanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-16 21:25:16 +0000
commiteb98fdb9144b094cb6053d15768cf7e31d1c9acd (patch)
treedf0dac42f916d713d145876d6351bb94c50e2bbc /webkit/tools/test_shell
parent70a184e3d185c024204062ab20e3de7d382a268b (diff)
downloadchromium_src-eb98fdb9144b094cb6053d15768cf7e31d1c9acd.zip
chromium_src-eb98fdb9144b094cb6053d15768cf7e31d1c9acd.tar.gz
chromium_src-eb98fdb9144b094cb6053d15768cf7e31d1c9acd.tar.bz2
Wrap a reference to a debug-only member variable with #ifndef NDEBUG in
order to fix release Mac builds Review URL: http://codereview.chromium.org/2908 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2284 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell')
-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 bf38fc4..d2671a4 100644
--- a/webkit/tools/test_shell/mac/webwidget_host.mm
+++ b/webkit/tools/test_shell/mac/webwidget_host.mm
@@ -77,7 +77,9 @@ void WebWidgetHost::HandleEvent(NSWindow *window, NSEvent *event) {
}
void WebWidgetHost::DidInvalidateRect(const gfx::Rect& damaged_rect) {
+#ifndef NDEBUG
DLOG_IF(WARNING, painting_) << "unexpected invalidation while painting";
+#endif
// If this invalidate overlaps with a pending scroll, then we have to
// downgrade to invalidating the scroll rect.