Print out view during listings

This commit is contained in:
kipp 1998-06-03 15:57:24 +00:00
parent bdcfe7d55f
commit aa7da9b898
2 changed files with 14 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#include "nsBodyFrame.h"
#include "nsIStyleContext.h"
#include "nsCSSLayout.h"
#include "nsIView.h"
static NS_DEFINE_IID(kIFloaterContainerIID, NS_IFLOATERCONTAINER_IID);
@ -207,6 +208,12 @@ nsPlaceholderFrame::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 rect
out << mRect;

View File

@ -22,6 +22,7 @@
#include "nsBodyFrame.h"
#include "nsIStyleContext.h"
#include "nsCSSLayout.h"
#include "nsIView.h"
static NS_DEFINE_IID(kIFloaterContainerIID, NS_IFLOATERCONTAINER_IID);
@ -207,6 +208,12 @@ nsPlaceholderFrame::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 rect
out << mRect;