From f7b56628c8f115478987e5683f767b2240392423 Mon Sep 17 00:00:00 2001 From: kipp Date: Wed, 3 Jun 1998 15:51:17 +0000 Subject: [PATCH] Print out views during listings --- layout/generic/nsBlockFrame.cpp | 7 +++++++ layout/generic/nsBlockReflowState.cpp | 7 +++++++ layout/generic/nsBlockReflowState.h | 7 +++++++ layout/html/base/src/nsBlockFrame.cpp | 7 +++++++ layout/html/base/src/nsBlockReflowState.cpp | 7 +++++++ layout/html/base/src/nsBlockReflowState.h | 7 +++++++ 6 files changed, 42 insertions(+) diff --git a/layout/generic/nsBlockFrame.cpp b/layout/generic/nsBlockFrame.cpp index ecc356f9bcac..d8009b76b9b9 100644 --- a/layout/generic/nsBlockFrame.cpp +++ b/layout/generic/nsBlockFrame.cpp @@ -29,6 +29,7 @@ #include "nsHTMLValue.h" #include "nsReflowCommand.h" #include "nsCSSLayout.h" +#include "nsIView.h" // XXX what do we do with catastrophic errors (rv < 0)? What is the // state of the reflow world after such an error? @@ -309,6 +310,12 @@ nsBlockFrame::List(FILE* out, PRInt32 aIndent) const // Output the tag ListTag(out); + nsIView* view; + GetView(view); + if (nsnull != view) { + fprintf(out, " [view=%p]", view); + NS_RELEASE(view); + } // Output the first/last content offset fprintf(out, "[%d,%d,%c] ", mFirstContentOffset, mLastContentOffset, diff --git a/layout/generic/nsBlockReflowState.cpp b/layout/generic/nsBlockReflowState.cpp index ecc356f9bcac..d8009b76b9b9 100644 --- a/layout/generic/nsBlockReflowState.cpp +++ b/layout/generic/nsBlockReflowState.cpp @@ -29,6 +29,7 @@ #include "nsHTMLValue.h" #include "nsReflowCommand.h" #include "nsCSSLayout.h" +#include "nsIView.h" // XXX what do we do with catastrophic errors (rv < 0)? What is the // state of the reflow world after such an error? @@ -309,6 +310,12 @@ nsBlockFrame::List(FILE* out, PRInt32 aIndent) const // Output the tag ListTag(out); + nsIView* view; + GetView(view); + if (nsnull != view) { + fprintf(out, " [view=%p]", view); + NS_RELEASE(view); + } // Output the first/last content offset fprintf(out, "[%d,%d,%c] ", mFirstContentOffset, mLastContentOffset, diff --git a/layout/generic/nsBlockReflowState.h b/layout/generic/nsBlockReflowState.h index ecc356f9bcac..d8009b76b9b9 100644 --- a/layout/generic/nsBlockReflowState.h +++ b/layout/generic/nsBlockReflowState.h @@ -29,6 +29,7 @@ #include "nsHTMLValue.h" #include "nsReflowCommand.h" #include "nsCSSLayout.h" +#include "nsIView.h" // XXX what do we do with catastrophic errors (rv < 0)? What is the // state of the reflow world after such an error? @@ -309,6 +310,12 @@ nsBlockFrame::List(FILE* out, PRInt32 aIndent) const // Output the tag ListTag(out); + nsIView* view; + GetView(view); + if (nsnull != view) { + fprintf(out, " [view=%p]", view); + NS_RELEASE(view); + } // Output the first/last content offset fprintf(out, "[%d,%d,%c] ", mFirstContentOffset, mLastContentOffset, diff --git a/layout/html/base/src/nsBlockFrame.cpp b/layout/html/base/src/nsBlockFrame.cpp index ecc356f9bcac..d8009b76b9b9 100644 --- a/layout/html/base/src/nsBlockFrame.cpp +++ b/layout/html/base/src/nsBlockFrame.cpp @@ -29,6 +29,7 @@ #include "nsHTMLValue.h" #include "nsReflowCommand.h" #include "nsCSSLayout.h" +#include "nsIView.h" // XXX what do we do with catastrophic errors (rv < 0)? What is the // state of the reflow world after such an error? @@ -309,6 +310,12 @@ nsBlockFrame::List(FILE* out, PRInt32 aIndent) const // Output the tag ListTag(out); + nsIView* view; + GetView(view); + if (nsnull != view) { + fprintf(out, " [view=%p]", view); + NS_RELEASE(view); + } // Output the first/last content offset fprintf(out, "[%d,%d,%c] ", mFirstContentOffset, mLastContentOffset, diff --git a/layout/html/base/src/nsBlockReflowState.cpp b/layout/html/base/src/nsBlockReflowState.cpp index ecc356f9bcac..d8009b76b9b9 100644 --- a/layout/html/base/src/nsBlockReflowState.cpp +++ b/layout/html/base/src/nsBlockReflowState.cpp @@ -29,6 +29,7 @@ #include "nsHTMLValue.h" #include "nsReflowCommand.h" #include "nsCSSLayout.h" +#include "nsIView.h" // XXX what do we do with catastrophic errors (rv < 0)? What is the // state of the reflow world after such an error? @@ -309,6 +310,12 @@ nsBlockFrame::List(FILE* out, PRInt32 aIndent) const // Output the tag ListTag(out); + nsIView* view; + GetView(view); + if (nsnull != view) { + fprintf(out, " [view=%p]", view); + NS_RELEASE(view); + } // Output the first/last content offset fprintf(out, "[%d,%d,%c] ", mFirstContentOffset, mLastContentOffset, diff --git a/layout/html/base/src/nsBlockReflowState.h b/layout/html/base/src/nsBlockReflowState.h index ecc356f9bcac..d8009b76b9b9 100644 --- a/layout/html/base/src/nsBlockReflowState.h +++ b/layout/html/base/src/nsBlockReflowState.h @@ -29,6 +29,7 @@ #include "nsHTMLValue.h" #include "nsReflowCommand.h" #include "nsCSSLayout.h" +#include "nsIView.h" // XXX what do we do with catastrophic errors (rv < 0)? What is the // state of the reflow world after such an error? @@ -309,6 +310,12 @@ nsBlockFrame::List(FILE* out, PRInt32 aIndent) const // Output the tag ListTag(out); + nsIView* view; + GetView(view); + if (nsnull != view) { + fprintf(out, " [view=%p]", view); + NS_RELEASE(view); + } // Output the first/last content offset fprintf(out, "[%d,%d,%c] ", mFirstContentOffset, mLastContentOffset,