Followup for bug 510651 to make non-debug builds with --enable-extensions=layout-debug build.
authorBoris Zbarsky <bzbarsky@mit.edu>
Mon, 24 Aug 2009 14:22:19 -0400
changeset 31793 c4365eddea673f2e48c695cd664ce7d3eab72ea8
parent 31792 9ee34b4990e57630c68eff51ea1967ba4a56d6b7
child 31794 fb83d13c0625587521bfbf189501687acb520e95
push id8733
push userbzbarsky@mozilla.com
push dateMon, 24 Aug 2009 18:22:31 +0000
treeherderautoland@c4365eddea67 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs510651
milestone1.9.3a1pre
Followup for bug 510651 to make non-debug builds with --enable-extensions=layout-debug build.
extensions/layout-debug/src/nsLayoutDebuggingTools.cpp
--- a/extensions/layout-debug/src/nsLayoutDebuggingTools.cpp
+++ b/extensions/layout-debug/src/nsLayoutDebuggingTools.cpp
@@ -423,16 +423,17 @@ nsLayoutDebuggingTools::DumpContent()
     NS_ENSURE_TRUE(mDocShell, NS_ERROR_NOT_INITIALIZED);
     DumpContentRecur(mDocShell, stdout);
     return NS_OK;
 }
 
 static void
 DumpFramesRecur(nsIDocShell* aDocShell, FILE* out)
 {
+#ifdef DEBUG
     fprintf(out, "webshell=%p \n", static_cast<void*>(aDocShell));
     nsCOMPtr<nsIPresShell> shell(pres_shell(aDocShell));
     if (shell) {
         nsIFrame* root = shell->GetRootFrame();
         if (root) {
             root->List(out, 0);
         }
     }
@@ -447,16 +448,17 @@ DumpFramesRecur(nsIDocShell* aDocShell, 
     for (i = 0; i < n; ++i) {
         nsCOMPtr<nsIDocShellTreeItem> child;
         docShellAsNode->GetChildAt(i, getter_AddRefs(child));
         nsCOMPtr<nsIDocShell> childAsShell(do_QueryInterface(child));
         if (childAsShell) {
             DumpFramesRecur(childAsShell, out);
         }
     }
+#endif
 }
 
 NS_IMETHODIMP
 nsLayoutDebuggingTools::DumpFrames()
 {
     NS_ENSURE_TRUE(mDocShell, NS_ERROR_NOT_INITIALIZED);
     DumpFramesRecur(mDocShell, stdout);
     return NS_OK;