From 5caf777abe70616909d169bca42b9b0ac443008d Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Fri, 27 Aug 1999 21:50:37 +0000 Subject: [PATCH] Added hack code (for me) to allow for stack depth testing git-svn-id: svn://10.0.0.236/trunk@44929 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsPresShell.cpp | 10 ++++++++++ mozilla/layout/html/base/src/nsPresShell.cpp | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/mozilla/layout/base/nsPresShell.cpp b/mozilla/layout/base/nsPresShell.cpp index d637f2782bc..3fa5fb18c65 100644 --- a/mozilla/layout/base/nsPresShell.cpp +++ b/mozilla/layout/base/nsPresShell.cpp @@ -758,6 +758,10 @@ PresShell::EndObservingDocument() return NS_OK; } +#ifdef DEBUG_kipp +char* nsPresShell_ReflowStackPointerTop; +#endif + NS_IMETHODIMP PresShell::InitialReflow(nscoord aWidth, nscoord aHeight) { @@ -796,6 +800,9 @@ PresShell::InitialReflow(nscoord aWidth, nscoord aHeight) if (nsIFrame::GetVerifyTreeEnable()) { mRootFrame->VerifyTree(); } +#endif +#ifdef DEBUG_kipp + nsPresShell_ReflowStackPointerTop = (char*) &aWidth; #endif nsRect bounds; mPresContext->GetVisibleArea(bounds); @@ -852,6 +859,9 @@ PresShell::ResizeReflow(nscoord aWidth, nscoord aHeight) if (nsIFrame::GetVerifyTreeEnable()) { mRootFrame->VerifyTree(); } +#endif +#ifdef DEBUG_kipp + nsPresShell_ReflowStackPointerTop = (char*) &aWidth; #endif nsRect bounds; mPresContext->GetVisibleArea(bounds); diff --git a/mozilla/layout/html/base/src/nsPresShell.cpp b/mozilla/layout/html/base/src/nsPresShell.cpp index d637f2782bc..3fa5fb18c65 100644 --- a/mozilla/layout/html/base/src/nsPresShell.cpp +++ b/mozilla/layout/html/base/src/nsPresShell.cpp @@ -758,6 +758,10 @@ PresShell::EndObservingDocument() return NS_OK; } +#ifdef DEBUG_kipp +char* nsPresShell_ReflowStackPointerTop; +#endif + NS_IMETHODIMP PresShell::InitialReflow(nscoord aWidth, nscoord aHeight) { @@ -796,6 +800,9 @@ PresShell::InitialReflow(nscoord aWidth, nscoord aHeight) if (nsIFrame::GetVerifyTreeEnable()) { mRootFrame->VerifyTree(); } +#endif +#ifdef DEBUG_kipp + nsPresShell_ReflowStackPointerTop = (char*) &aWidth; #endif nsRect bounds; mPresContext->GetVisibleArea(bounds); @@ -852,6 +859,9 @@ PresShell::ResizeReflow(nscoord aWidth, nscoord aHeight) if (nsIFrame::GetVerifyTreeEnable()) { mRootFrame->VerifyTree(); } +#endif +#ifdef DEBUG_kipp + nsPresShell_ReflowStackPointerTop = (char*) &aWidth; #endif nsRect bounds; mPresContext->GetVisibleArea(bounds);