Bug 520427. Improvements to debug output List for frames. r=dbaron

--HG--
extra : rebase_source : f7723925a24937bb1989344805e9fda01ae0eded
This commit is contained in:
Timothy Nikkel 2009-10-15 21:47:03 -05:00
Родитель f21e11f649
Коммит a669b0911f
5 изменённых файлов: 24 добавлений и 10 удалений

Просмотреть файл

@ -368,6 +368,19 @@ nsBlockFrame::List(FILE* out, PRInt32 aIndent) const
fprintf(out, " next-in-flow=%p", static_cast<void*>(GetNextInFlow()));
}
void* IBsibling = GetProperty(nsGkAtoms::IBSplitSpecialSibling);
if (IBsibling) {
fprintf(out, " IBSplitSpecialSibling=%p", IBsibling);
}
void* IBprevsibling = GetProperty(nsGkAtoms::IBSplitSpecialPrevSibling);
if (IBprevsibling) {
fprintf(out, " IBSplitSpecialPrevSibling=%p", IBprevsibling);
}
if (nsnull != mContent) {
fprintf(out, " [content=%p]", static_cast<void*>(mContent));
}
// Output the rect and state
fprintf(out, " {%d,%d,%d,%d}", mRect.x, mRect.y, mRect.width, mRect.height);
if (0 != mState) {

Просмотреть файл

@ -1585,6 +1585,14 @@ nsContainerFrame::List(FILE* out, PRInt32 aIndent) const
if (nsnull != GetNextContinuation()) {
fprintf(out, " next-continuation=%p", static_cast<void*>(GetNextContinuation()));
}
void* IBsibling = GetProperty(nsGkAtoms::IBSplitSpecialSibling);
if (IBsibling) {
fprintf(out, " IBSplitSpecialSibling=%p", IBsibling);
}
void* IBprevsibling = GetProperty(nsGkAtoms::IBSplitSpecialPrevSibling);
if (IBprevsibling) {
fprintf(out, " IBSplitSpecialPrevSibling=%p", IBprevsibling);
}
fprintf(out, " {%d,%d,%d,%d}", mRect.x, mRect.y, mRect.width, mRect.height);
if (0 != mState) {
fprintf(out, " [state=%08x]", mState);

Просмотреть файл

@ -320,14 +320,5 @@ nsHTMLCanvasFrame::GetFrameName(nsAString& aResult) const
{
return MakeFrameName(NS_LITERAL_STRING("HTMLCanvas"), aResult);
}
NS_IMETHODIMP
nsHTMLCanvasFrame::List(FILE* out, PRInt32 aIndent) const
{
IndentBy(out, aIndent);
ListTag(out);
fputs("\n", out);
return NS_OK;
}
#endif

Просмотреть файл

@ -94,7 +94,6 @@ public:
#ifdef DEBUG
NS_IMETHOD GetFrameName(nsAString& aResult) const;
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;
#endif
protected:

Просмотреть файл

@ -241,6 +241,9 @@ nsPlaceholderFrame::List(FILE* out, PRInt32 aIndent) const
if (nsnull != nextInFlow) {
fprintf(out, " next-in-flow=%p", static_cast<void*>(nextInFlow));
}
if (nsnull != mContent) {
fprintf(out, " [content=%p]", static_cast<void*>(mContent));
}
if (mOutOfFlowFrame) {
fprintf(out, " outOfFlowFrame=");
nsFrame::ListTag(out, mOutOfFlowFrame);