Removed dead code; output rects naturally
git-svn-id: svn://10.0.0.236/trunk@22840 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -547,38 +547,20 @@ nsContainerFrame::RemoveAFrame(nsIFrame* aRemovedFrame)
|
||||
NS_IMETHODIMP
|
||||
nsContainerFrame::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
nsAutoString tagString;
|
||||
if (nsnull != mContent) {
|
||||
nsIAtom* tag;
|
||||
mContent->GetTag(tag);
|
||||
if (tag != nsnull) {
|
||||
tag->ToString(tagString);
|
||||
NS_RELEASE(tag);
|
||||
}
|
||||
}
|
||||
|
||||
// Indent
|
||||
IndentBy(out, aIndent);
|
||||
|
||||
// Output the tag
|
||||
ListTag(out);
|
||||
|
||||
nsIView* view;
|
||||
GetView(&view);
|
||||
if (nsnull != view) {
|
||||
fprintf(out, " [view=%p]", view);
|
||||
}
|
||||
|
||||
if (nsnull != mPrevInFlow) {
|
||||
fprintf(out, " prev-in-flow=%p", mPrevInFlow);
|
||||
}
|
||||
if (nsnull != mNextInFlow) {
|
||||
fprintf(out, " next-in-flow=%p", mNextInFlow);
|
||||
}
|
||||
|
||||
// Output the rect
|
||||
out << mRect;
|
||||
|
||||
fprintf(out, " {%d,%d,%d,%d}", mRect.x, mRect.y, mRect.width, mRect.height);
|
||||
if (0 != mState) {
|
||||
fprintf(out, " [state=%08x]", mState);
|
||||
}
|
||||
|
||||
@@ -1345,26 +1345,12 @@ PRInt32 nsFrame::ContentIndexInContainer(const nsIFrame* aFrame)
|
||||
NS_IMETHODIMP
|
||||
nsFrame::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
nsAutoString tagString;
|
||||
if (nsnull != mContent) {
|
||||
nsIAtom* tag;
|
||||
mContent->GetTag(tag);
|
||||
if (tag != nsnull) {
|
||||
tag->ToString(tagString);
|
||||
NS_RELEASE(tag);
|
||||
}
|
||||
}
|
||||
|
||||
// Indent
|
||||
IndentBy(out, aIndent);
|
||||
|
||||
// Output the tag and rect
|
||||
ListTag(out);
|
||||
if (nsnull != mView) {
|
||||
fprintf(out, " [view=%p]", mView);
|
||||
}
|
||||
fputs(" ", out);
|
||||
out << mRect;
|
||||
fprintf(out, " {%d,%d,%d,%d}", mRect.x, mRect.y, mRect.width, mRect.height);
|
||||
if (0 != mState) {
|
||||
fprintf(out, " [state=%08x]", mState);
|
||||
}
|
||||
|
||||
@@ -547,38 +547,20 @@ nsContainerFrame::RemoveAFrame(nsIFrame* aRemovedFrame)
|
||||
NS_IMETHODIMP
|
||||
nsContainerFrame::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
nsAutoString tagString;
|
||||
if (nsnull != mContent) {
|
||||
nsIAtom* tag;
|
||||
mContent->GetTag(tag);
|
||||
if (tag != nsnull) {
|
||||
tag->ToString(tagString);
|
||||
NS_RELEASE(tag);
|
||||
}
|
||||
}
|
||||
|
||||
// Indent
|
||||
IndentBy(out, aIndent);
|
||||
|
||||
// Output the tag
|
||||
ListTag(out);
|
||||
|
||||
nsIView* view;
|
||||
GetView(&view);
|
||||
if (nsnull != view) {
|
||||
fprintf(out, " [view=%p]", view);
|
||||
}
|
||||
|
||||
if (nsnull != mPrevInFlow) {
|
||||
fprintf(out, " prev-in-flow=%p", mPrevInFlow);
|
||||
}
|
||||
if (nsnull != mNextInFlow) {
|
||||
fprintf(out, " next-in-flow=%p", mNextInFlow);
|
||||
}
|
||||
|
||||
// Output the rect
|
||||
out << mRect;
|
||||
|
||||
fprintf(out, " {%d,%d,%d,%d}", mRect.x, mRect.y, mRect.width, mRect.height);
|
||||
if (0 != mState) {
|
||||
fprintf(out, " [state=%08x]", mState);
|
||||
}
|
||||
|
||||
@@ -1345,26 +1345,12 @@ PRInt32 nsFrame::ContentIndexInContainer(const nsIFrame* aFrame)
|
||||
NS_IMETHODIMP
|
||||
nsFrame::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
nsAutoString tagString;
|
||||
if (nsnull != mContent) {
|
||||
nsIAtom* tag;
|
||||
mContent->GetTag(tag);
|
||||
if (tag != nsnull) {
|
||||
tag->ToString(tagString);
|
||||
NS_RELEASE(tag);
|
||||
}
|
||||
}
|
||||
|
||||
// Indent
|
||||
IndentBy(out, aIndent);
|
||||
|
||||
// Output the tag and rect
|
||||
ListTag(out);
|
||||
if (nsnull != mView) {
|
||||
fprintf(out, " [view=%p]", mView);
|
||||
}
|
||||
fputs(" ", out);
|
||||
out << mRect;
|
||||
fprintf(out, " {%d,%d,%d,%d}", mRect.x, mRect.y, mRect.width, mRect.height);
|
||||
if (0 != mState) {
|
||||
fprintf(out, " [state=%08x]", mState);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user