From c0814779f2f5dce88fb75e327f74248c8ad24b5a Mon Sep 17 00:00:00 2001 From: "jj%netscape.com" Date: Thu, 10 Feb 2000 00:38:59 +0000 Subject: [PATCH] can't use nsIFrameDebug in an optimized build, fixing with NS_DEBUG wrappers. git-svn-id: svn://10.0.0.236/trunk@60263 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/xul/base/src/nsBoxFrame.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mozilla/layout/xul/base/src/nsBoxFrame.cpp b/mozilla/layout/xul/base/src/nsBoxFrame.cpp index b919e77adf7..51345d778ad 100644 --- a/mozilla/layout/xul/base/src/nsBoxFrame.cpp +++ b/mozilla/layout/xul/base/src/nsBoxFrame.cpp @@ -2765,7 +2765,9 @@ nsBoxFrame::Release(void) NS_INTERFACE_MAP_BEGIN(nsBoxFrame) NS_INTERFACE_MAP_ENTRY(nsIBox) +#ifdef NS_DEBUG NS_INTERFACE_MAP_ENTRY(nsIFrameDebug) +#endif NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIBox) NS_INTERFACE_MAP_END_INHERITING(nsHTMLContainerFrame) @@ -2936,9 +2938,11 @@ nsBoxDebugInner::DisplayDebugInfoFor(nsIPresContext* aPresContext, tagString.ToCString(tagValue,100); +#ifdef NS_DEBUG printf("----- "); nsFrame::ListTag(stdout, mOuter); printf(" Tag='%s', id='%s' class='%s'---------------\n", tagValue, idValue, kClassValue); +#endif content->GetAttribute(kNameSpaceID_None, nsHTMLAtoms::id, id); id.ToCString(idValue,100); @@ -2950,9 +2954,11 @@ nsBoxDebugInner::DisplayDebugInfoFor(nsIPresContext* aPresContext, tag->ToString(tagString); tagString.ToCString(tagValue,100); +#ifdef NS_DEBUG printf("child #%d: ", count); nsFrame::ListTag(stdout, childFrame); printf("Tag='%s', id='%s' class='%s'\n", tagValue, idValue, kClassValue); +#endif mDebugChild = childFrame; nsCalculatedBoxInfoImpl aSize(childFrame);