From 1f0eeed37541360fcd489b1bd805408198959c67 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Mon, 24 Aug 2009 14:22:19 -0400 Subject: [PATCH] Followup for bug 510651 to make non-debug builds with --enable-extensions=layout-debug build. --- extensions/layout-debug/src/nsLayoutDebuggingTools.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/layout-debug/src/nsLayoutDebuggingTools.cpp b/extensions/layout-debug/src/nsLayoutDebuggingTools.cpp index bc3996ef25f..8f7bd31c467 100644 --- a/extensions/layout-debug/src/nsLayoutDebuggingTools.cpp +++ b/extensions/layout-debug/src/nsLayoutDebuggingTools.cpp @@ -428,6 +428,7 @@ nsLayoutDebuggingTools::DumpContent() static void DumpFramesRecur(nsIDocShell* aDocShell, FILE* out) { +#ifdef DEBUG fprintf(out, "webshell=%p \n", static_cast(aDocShell)); nsCOMPtr shell(pres_shell(aDocShell)); if (shell) { @@ -452,6 +453,7 @@ DumpFramesRecur(nsIDocShell* aDocShell, FILE* out) DumpFramesRecur(childAsShell, out); } } +#endif } NS_IMETHODIMP