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