forked from mirrors/gecko-dev
Bug 520427. Improvements to debug output List for frames. r=dbaron
--HG-- extra : rebase_source : f7723925a24937bb1989344805e9fda01ae0eded
This commit is contained in:
parent
86e65af9a5
commit
57fe60c878
5 changed files with 24 additions and 10 deletions
|
|
@ -368,6 +368,19 @@ nsBlockFrame::List(FILE* out, PRInt32 aIndent) const
|
||||||
fprintf(out, " next-in-flow=%p", static_cast<void*>(GetNextInFlow()));
|
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
|
// Output the rect and state
|
||||||
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) {
|
if (0 != mState) {
|
||||||
|
|
|
||||||
|
|
@ -1585,6 +1585,14 @@ nsContainerFrame::List(FILE* out, PRInt32 aIndent) const
|
||||||
if (nsnull != GetNextContinuation()) {
|
if (nsnull != GetNextContinuation()) {
|
||||||
fprintf(out, " next-continuation=%p", static_cast<void*>(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);
|
fprintf(out, " {%d,%d,%d,%d}", mRect.x, mRect.y, mRect.width, mRect.height);
|
||||||
if (0 != mState) {
|
if (0 != mState) {
|
||||||
fprintf(out, " [state=%08x]", mState);
|
fprintf(out, " [state=%08x]", mState);
|
||||||
|
|
|
||||||
|
|
@ -320,14 +320,5 @@ nsHTMLCanvasFrame::GetFrameName(nsAString& aResult) const
|
||||||
{
|
{
|
||||||
return MakeFrameName(NS_LITERAL_STRING("HTMLCanvas"), aResult);
|
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
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,6 @@ public:
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
NS_IMETHOD GetFrameName(nsAString& aResult) const;
|
NS_IMETHOD GetFrameName(nsAString& aResult) const;
|
||||||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
||||||
|
|
@ -241,6 +241,9 @@ nsPlaceholderFrame::List(FILE* out, PRInt32 aIndent) const
|
||||||
if (nsnull != nextInFlow) {
|
if (nsnull != nextInFlow) {
|
||||||
fprintf(out, " next-in-flow=%p", static_cast<void*>(nextInFlow));
|
fprintf(out, " next-in-flow=%p", static_cast<void*>(nextInFlow));
|
||||||
}
|
}
|
||||||
|
if (nsnull != mContent) {
|
||||||
|
fprintf(out, " [content=%p]", static_cast<void*>(mContent));
|
||||||
|
}
|
||||||
if (mOutOfFlowFrame) {
|
if (mOutOfFlowFrame) {
|
||||||
fprintf(out, " outOfFlowFrame=");
|
fprintf(out, " outOfFlowFrame=");
|
||||||
nsFrame::ListTag(out, mOutOfFlowFrame);
|
nsFrame::ListTag(out, mOutOfFlowFrame);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue