зеркало из 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);
|
ListTag(out);
|
||||||
fputs(" ", out);
|
fputs(" ", out);
|
||||||
out << mRect;
|
out << mRect;
|
||||||
|
if (0 != mState) {
|
||||||
|
fprintf(out, " [state=%08x]", mState);
|
||||||
|
}
|
||||||
fputs("<>\n", out);
|
fputs("<>\n", out);
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -173,11 +173,17 @@ PlaceholderFrame::List(FILE* out, PRInt32 aIndent) const
|
||||||
|
|
||||||
// Output the children
|
// Output the children
|
||||||
if (nsnull != mAnchoredItem) {
|
if (nsnull != mAnchoredItem) {
|
||||||
|
if (0 != mState) {
|
||||||
|
fprintf(out, " [state=%08x]", mState);
|
||||||
|
}
|
||||||
fputs("<\n", out);
|
fputs("<\n", out);
|
||||||
mAnchoredItem->List(out, aIndent + 1);
|
mAnchoredItem->List(out, aIndent + 1);
|
||||||
for (i = aIndent; --i >= 0; ) fputs(" ", out);
|
for (i = aIndent; --i >= 0; ) fputs(" ", out);
|
||||||
fputs(">\n", out);
|
fputs(">\n", out);
|
||||||
} else {
|
} else {
|
||||||
|
if (0 != mState) {
|
||||||
|
fprintf(out, " [state=%08x]", mState);
|
||||||
|
}
|
||||||
fputs("<>\n", out);
|
fputs("<>\n", out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -388,6 +388,9 @@ NS_METHOD AbsoluteFrame::List(FILE* out, PRInt32 aIndent) const
|
||||||
out << mRect;
|
out << mRect;
|
||||||
|
|
||||||
// List the absolutely positioned frame
|
// List the absolutely positioned frame
|
||||||
|
if (0 != mState) {
|
||||||
|
fprintf(out, " [state=%08x]", mState);
|
||||||
|
}
|
||||||
fputs("<\n", out);
|
fputs("<\n", out);
|
||||||
mFrame->List(out, aIndent + 1);
|
mFrame->List(out, aIndent + 1);
|
||||||
fputs(">\n", out);
|
fputs(">\n", out);
|
||||||
|
|
|
@ -173,11 +173,17 @@ PlaceholderFrame::List(FILE* out, PRInt32 aIndent) const
|
||||||
|
|
||||||
// Output the children
|
// Output the children
|
||||||
if (nsnull != mAnchoredItem) {
|
if (nsnull != mAnchoredItem) {
|
||||||
|
if (0 != mState) {
|
||||||
|
fprintf(out, " [state=%08x]", mState);
|
||||||
|
}
|
||||||
fputs("<\n", out);
|
fputs("<\n", out);
|
||||||
mAnchoredItem->List(out, aIndent + 1);
|
mAnchoredItem->List(out, aIndent + 1);
|
||||||
for (i = aIndent; --i >= 0; ) fputs(" ", out);
|
for (i = aIndent; --i >= 0; ) fputs(" ", out);
|
||||||
fputs(">\n", out);
|
fputs(">\n", out);
|
||||||
} else {
|
} else {
|
||||||
|
if (0 != mState) {
|
||||||
|
fprintf(out, " [state=%08x]", mState);
|
||||||
|
}
|
||||||
fputs("<>\n", out);
|
fputs("<>\n", out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1536,6 +1536,10 @@ NS_METHOD TextFrame::List(FILE* out, PRInt32 aIndent) const
|
||||||
contentIndex, this,
|
contentIndex, this,
|
||||||
mContentOffset, mContentOffset+mContentLength-1);
|
mContentOffset, mContentOffset+mContentLength-1);
|
||||||
out << mRect;
|
out << mRect;
|
||||||
|
if (0 != mState) {
|
||||||
|
fprintf(out, " [state=%08x]", mState);
|
||||||
|
}
|
||||||
|
fputs("<\n", out);
|
||||||
aIndent++;
|
aIndent++;
|
||||||
|
|
||||||
for (i = aIndent; --i >= 0; ) fputs(" ", out);
|
for (i = aIndent; --i >= 0; ) fputs(" ", out);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче