Made ListTag more usable for all frame types, not just derivations of nsFrame

git-svn-id: svn://10.0.0.236/trunk@16321 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1998-12-12 19:20:10 +00:00
parent 82c8bb51be
commit 79aff1475c
2 changed files with 12 additions and 4 deletions

View File

@@ -274,10 +274,14 @@ public:
#endif
void ListTag(FILE* out) const {
ListTag(out, this);
}
static void ListTag(FILE* out, const nsIFrame* aFrame) {
nsAutoString tmp;
GetFrameName(tmp);
aFrame->GetFrameName(tmp);
fputs(tmp, out);
fprintf(out, "@%p", this);
fprintf(out, "@%p", aFrame);
}
static void IndentBy(FILE* out, PRInt32 aIndent) {

View File

@@ -274,10 +274,14 @@ public:
#endif
void ListTag(FILE* out) const {
ListTag(out, this);
}
static void ListTag(FILE* out, const nsIFrame* aFrame) {
nsAutoString tmp;
GetFrameName(tmp);
aFrame->GetFrameName(tmp);
fputs(tmp, out);
fprintf(out, "@%p", this);
fprintf(out, "@%p", aFrame);
}
static void IndentBy(FILE* out, PRInt32 aIndent) {