Bug 574756. Make sure nsIFrame::List outputs the stylecontext of the frame. r=dbaron

This commit is contained in:
Timothy Nikkel 2010-06-25 16:51:17 -05:00
parent cc75858eb7
commit ee0aeb4d63
3 changed files with 6 additions and 2 deletions

View File

@ -4178,6 +4178,7 @@ nsFrame::List(FILE* out, PRInt32 aIndent) const
fprintf(out, " [overflow=%d,%d,%d,%d]", overflowArea.x, overflowArea.y,
overflowArea.width, overflowArea.height);
}
fprintf(out, " [sc=%p]", static_cast<void*>(mStyleContext));
fputs("\n", out);
return NS_OK;
}

View File

@ -1589,12 +1589,12 @@ nsImageFrame::List(FILE* out, PRInt32 aIndent) const
if (HasView()) {
fprintf(out, " [view=%p]", (void*)GetView());
}
fprintf(out, " {%d,%d,%d,%d}", mRect.x, mRect.y, mRect.width,
mRect.height);
fprintf(out, " {%d,%d,%d,%d}", mRect.x, mRect.y, mRect.width, mRect.height);
if (0 != mState) {
fprintf(out, " [state=%016llx]", mState);
}
fprintf(out, " [content=%p]", (void*)mContent);
fprintf(out, " [sc=%p]", static_cast<void*>(mStyleContext));
// output the img src url
nsCOMPtr<nsIImageLoadingContent> imageLoader = do_QueryInterface(mContent);

View File

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