зеркало из https://github.com/mozilla/pjs.git
Print out state when non-zero
This commit is contained in:
Родитель
cfda8fbbf0
Коммит
be831d99f1
|
@ -1275,6 +1275,9 @@ NS_METHOD nsFrame::List(FILE* out, PRInt32 aIndent) const
|
|||
ListTag(out);
|
||||
fputs(" ", out);
|
||||
out << mRect;
|
||||
if (0 != mState) {
|
||||
fprintf(out, " [state=%08x]", mState);
|
||||
}
|
||||
fputs("<>\n", out);
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -173,11 +173,17 @@ PlaceholderFrame::List(FILE* out, PRInt32 aIndent) const
|
|||
|
||||
// Output the children
|
||||
if (nsnull != mAnchoredItem) {
|
||||
if (0 != mState) {
|
||||
fprintf(out, " [state=%08x]", mState);
|
||||
}
|
||||
fputs("<\n", out);
|
||||
mAnchoredItem->List(out, aIndent + 1);
|
||||
for (i = aIndent; --i >= 0; ) fputs(" ", out);
|
||||
fputs(">\n", out);
|
||||
} else {
|
||||
if (0 != mState) {
|
||||
fprintf(out, " [state=%08x]", mState);
|
||||
}
|
||||
fputs("<>\n", out);
|
||||
}
|
||||
|
||||
|
|
|
@ -388,6 +388,9 @@ NS_METHOD AbsoluteFrame::List(FILE* out, PRInt32 aIndent) const
|
|||
out << mRect;
|
||||
|
||||
// List the absolutely positioned frame
|
||||
if (0 != mState) {
|
||||
fprintf(out, " [state=%08x]", mState);
|
||||
}
|
||||
fputs("<\n", out);
|
||||
mFrame->List(out, aIndent + 1);
|
||||
fputs(">\n", out);
|
||||
|
|
|
@ -173,11 +173,17 @@ PlaceholderFrame::List(FILE* out, PRInt32 aIndent) const
|
|||
|
||||
// Output the children
|
||||
if (nsnull != mAnchoredItem) {
|
||||
if (0 != mState) {
|
||||
fprintf(out, " [state=%08x]", mState);
|
||||
}
|
||||
fputs("<\n", out);
|
||||
mAnchoredItem->List(out, aIndent + 1);
|
||||
for (i = aIndent; --i >= 0; ) fputs(" ", out);
|
||||
fputs(">\n", out);
|
||||
} else {
|
||||
if (0 != mState) {
|
||||
fprintf(out, " [state=%08x]", mState);
|
||||
}
|
||||
fputs("<>\n", out);
|
||||
}
|
||||
|
||||
|
|
|
@ -1536,6 +1536,10 @@ NS_METHOD TextFrame::List(FILE* out, PRInt32 aIndent) const
|
|||
contentIndex, this,
|
||||
mContentOffset, mContentOffset+mContentLength-1);
|
||||
out << mRect;
|
||||
if (0 != mState) {
|
||||
fprintf(out, " [state=%08x]", mState);
|
||||
}
|
||||
fputs("<\n", out);
|
||||
aIndent++;
|
||||
|
||||
for (i = aIndent; --i >= 0; ) fputs(" ", out);
|
||||
|
|
Загрузка…
Ссылка в новой задаче