From 1a34462861b656117f09c40f6e71b8bf9fb2482b Mon Sep 17 00:00:00 2001 From: "attinasi%netscape.com" Date: Fri, 7 Dec 2001 00:38:27 +0000 Subject: [PATCH] Adding parent to StyleContext listing for help in debugging. b= 113518 r=dbaron sr=kin git-svn-id: svn://10.0.0.236/trunk@109917 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/base/src/nsStyleContext.cpp | 2 +- mozilla/layout/style/nsStyleContext.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/content/base/src/nsStyleContext.cpp b/mozilla/content/base/src/nsStyleContext.cpp index 70476e72188..b3eb7be8218 100644 --- a/mozilla/content/base/src/nsStyleContext.cpp +++ b/mozilla/content/base/src/nsStyleContext.cpp @@ -896,7 +896,7 @@ void nsStyleContext::List(FILE* out, PRInt32 aIndent) // Indent PRInt32 ix; for (ix = aIndent; --ix >= 0; ) fputs(" ", out); - fprintf(out, "%p(%d) ", (void*)this, mRefCnt); + fprintf(out, "%p(%d) parent=%p ", (void*)this, mRefCnt, (void *)mParent); if (mPseudoTag) { nsAutoString buffer; mPseudoTag->ToString(buffer); diff --git a/mozilla/layout/style/nsStyleContext.cpp b/mozilla/layout/style/nsStyleContext.cpp index 70476e72188..b3eb7be8218 100644 --- a/mozilla/layout/style/nsStyleContext.cpp +++ b/mozilla/layout/style/nsStyleContext.cpp @@ -896,7 +896,7 @@ void nsStyleContext::List(FILE* out, PRInt32 aIndent) // Indent PRInt32 ix; for (ix = aIndent; --ix >= 0; ) fputs(" ", out); - fprintf(out, "%p(%d) ", (void*)this, mRefCnt); + fprintf(out, "%p(%d) parent=%p ", (void*)this, mRefCnt, (void *)mParent); if (mPseudoTag) { nsAutoString buffer; mPseudoTag->ToString(buffer);