Spanked away SizeOf methods and nsIListFilter
This commit is contained in:
@@ -1526,62 +1526,6 @@ NS_NewTableRowFrame(nsIFrame*& aResult)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* ----- debugging methods ----- */
|
||||
NS_METHOD nsTableRowFrame::List(FILE* out, PRInt32 aIndent, nsIListFilter *aFilter) const
|
||||
{
|
||||
// if a filter is present, only output this frame if the filter says we should
|
||||
// since this could be any "tag" with the right display type, we'll
|
||||
// just pretend it's a row
|
||||
if (nsnull==aFilter)
|
||||
return nsContainerFrame::List(out, aIndent, aFilter);
|
||||
|
||||
nsAutoString tagString("tr");
|
||||
PRBool outputMe = aFilter->OutputTag(&tagString);
|
||||
if (PR_TRUE==outputMe)
|
||||
{
|
||||
// Indent
|
||||
for (PRInt32 i = aIndent; --i >= 0; ) fputs(" ", out);
|
||||
|
||||
// Output the tag and rect
|
||||
nsIAtom* tag;
|
||||
mContent->GetTag(tag);
|
||||
if (tag != nsnull) {
|
||||
nsAutoString buf;
|
||||
tag->ToString(buf);
|
||||
fputs(buf, out);
|
||||
NS_RELEASE(tag);
|
||||
}
|
||||
|
||||
fprintf(out, "(%d)", ContentIndexInContainer(this));
|
||||
out << mRect;
|
||||
if (0 != mState) {
|
||||
fprintf(out, " [state=%08x]", mState);
|
||||
}
|
||||
fputs("\n", out);
|
||||
}
|
||||
// Output the children
|
||||
if (mFrames.NotEmpty()) {
|
||||
if (PR_TRUE==outputMe)
|
||||
{
|
||||
if (0 != mState) {
|
||||
fprintf(out, " [state=%08x]\n", mState);
|
||||
}
|
||||
}
|
||||
for (nsIFrame* child = mFrames.FirstChild(); child;
|
||||
child->GetNextSibling(child)) {
|
||||
child->List(out, aIndent + 1, aFilter);
|
||||
}
|
||||
} else {
|
||||
if (PR_TRUE==outputMe)
|
||||
{
|
||||
if (0 != mState) {
|
||||
fprintf(out, " [state=%08x]\n", mState);
|
||||
}
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsTableRowFrame::GetFrameName(nsString& aResult) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user