From bb6a908cf943ba4346288d1bcf593a89b8746cfc Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Tue, 2 Nov 1999 06:06:46 +0000 Subject: [PATCH] Real fix for my build bustage. Kipp had commened the offending code out to keep the build going --- layout/base/nsCSSFrameConstructor.cpp | 22 ++++++++++++------- .../html/style/src/nsCSSFrameConstructor.cpp | 22 ++++++++++++------- 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp index 68c04c7377c7..b42847f91b88 100644 --- a/layout/base/nsCSSFrameConstructor.cpp +++ b/layout/base/nsCSSFrameConstructor.cpp @@ -9582,15 +9582,21 @@ nsCSSFrameConstructor::ConstructInline(nsIPresContext* aPresContext, #ifdef DEBUG if (gNoisyInlineConstruction) { + nsIFrameDebug* frameDebug; + printf("nsCSSFrameConstructor::ConstructInline:\n"); - printf(" ==> leading inline frame:\n"); -/* - aNewFrame->List(aPresContext, stdout, 2); - printf(" ==> block frame:\n"); - blockFrame->List(aPresContext, stdout, 2); - printf(" ==> trailing inline frame:\n"); - inlineFrame->List(aPresContext, stdout, 2); -*/ + if (NS_SUCCEEDED(aNewFrame->QueryInterface(nsIFrameDebug::GetIID(), (void**)&frameDebug))) { + printf(" ==> leading inline frame:\n"); + frameDebug->List(aPresContext, stdout, 2); + } + if (NS_SUCCEEDED(blockFrame->QueryInterface(nsIFrameDebug::GetIID(), (void**)&frameDebug))) { + printf(" ==> block frame:\n"); + frameDebug->List(aPresContext, stdout, 2); + } + if (NS_SUCCEEDED(inlineFrame->QueryInterface(nsIFrameDebug::GetIID(), (void**)&frameDebug))) { + printf(" ==> trailing inline frame:\n"); + frameDebug->List(aPresContext, stdout, 2); + } } #endif diff --git a/layout/html/style/src/nsCSSFrameConstructor.cpp b/layout/html/style/src/nsCSSFrameConstructor.cpp index 68c04c7377c7..b42847f91b88 100644 --- a/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/layout/html/style/src/nsCSSFrameConstructor.cpp @@ -9582,15 +9582,21 @@ nsCSSFrameConstructor::ConstructInline(nsIPresContext* aPresContext, #ifdef DEBUG if (gNoisyInlineConstruction) { + nsIFrameDebug* frameDebug; + printf("nsCSSFrameConstructor::ConstructInline:\n"); - printf(" ==> leading inline frame:\n"); -/* - aNewFrame->List(aPresContext, stdout, 2); - printf(" ==> block frame:\n"); - blockFrame->List(aPresContext, stdout, 2); - printf(" ==> trailing inline frame:\n"); - inlineFrame->List(aPresContext, stdout, 2); -*/ + if (NS_SUCCEEDED(aNewFrame->QueryInterface(nsIFrameDebug::GetIID(), (void**)&frameDebug))) { + printf(" ==> leading inline frame:\n"); + frameDebug->List(aPresContext, stdout, 2); + } + if (NS_SUCCEEDED(blockFrame->QueryInterface(nsIFrameDebug::GetIID(), (void**)&frameDebug))) { + printf(" ==> block frame:\n"); + frameDebug->List(aPresContext, stdout, 2); + } + if (NS_SUCCEEDED(inlineFrame->QueryInterface(nsIFrameDebug::GetIID(), (void**)&frameDebug))) { + printf(" ==> trailing inline frame:\n"); + frameDebug->List(aPresContext, stdout, 2); + } } #endif