From 2b082dc55b91a293c5f3b55266429fa2327471b2 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Fri, 17 Sep 1999 23:15:53 +0000 Subject: [PATCH] Added more (disabled) debug noise --- layout/generic/nsAreaFrame.cpp | 11 +++++++++++ layout/html/base/src/nsAreaFrame.cpp | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/layout/generic/nsAreaFrame.cpp b/layout/generic/nsAreaFrame.cpp index bc8c8e049148..dc1699749acc 100644 --- a/layout/generic/nsAreaFrame.cpp +++ b/layout/generic/nsAreaFrame.cpp @@ -32,6 +32,7 @@ #undef NOISY_MAX_ELEMENT_SIZE #undef NOISY_SPACEMANAGER +#undef NOISY_FINAL_SIZE nsresult NS_NewAreaFrame(nsIFrame** aNewFrame, PRUint32 aFlags) @@ -416,10 +417,20 @@ nsAreaFrame::Reflow(nsIPresContext& aPresContext, if (NS_FRAME_OUTSIDE_CHILDREN & mState) { nscoord xMost = aDesiredSize.mCombinedArea.XMost(); if (xMost > aDesiredSize.width) { +#ifdef NOISY_FINAL_SIZE + ListTag(stdout); + printf(": changing desired width from %d to %d\n", + aDesiredSize.width, xMost); +#endif aDesiredSize.width = xMost; } nscoord yMost = aDesiredSize.mCombinedArea.YMost(); if (yMost > aDesiredSize.height) { +#ifdef NOISY_FINAL_SIZE + ListTag(stdout); + printf(": changing desired height from %d to %d\n", + aDesiredSize.height, yMost); +#endif aDesiredSize.height = yMost; } } diff --git a/layout/html/base/src/nsAreaFrame.cpp b/layout/html/base/src/nsAreaFrame.cpp index bc8c8e049148..dc1699749acc 100644 --- a/layout/html/base/src/nsAreaFrame.cpp +++ b/layout/html/base/src/nsAreaFrame.cpp @@ -32,6 +32,7 @@ #undef NOISY_MAX_ELEMENT_SIZE #undef NOISY_SPACEMANAGER +#undef NOISY_FINAL_SIZE nsresult NS_NewAreaFrame(nsIFrame** aNewFrame, PRUint32 aFlags) @@ -416,10 +417,20 @@ nsAreaFrame::Reflow(nsIPresContext& aPresContext, if (NS_FRAME_OUTSIDE_CHILDREN & mState) { nscoord xMost = aDesiredSize.mCombinedArea.XMost(); if (xMost > aDesiredSize.width) { +#ifdef NOISY_FINAL_SIZE + ListTag(stdout); + printf(": changing desired width from %d to %d\n", + aDesiredSize.width, xMost); +#endif aDesiredSize.width = xMost; } nscoord yMost = aDesiredSize.mCombinedArea.YMost(); if (yMost > aDesiredSize.height) { +#ifdef NOISY_FINAL_SIZE + ListTag(stdout); + printf(": changing desired height from %d to %d\n", + aDesiredSize.height, yMost); +#endif aDesiredSize.height = yMost; } }