From 79aff1475ca402821a19276473ab7ec8cb8bfdfd Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Sat, 12 Dec 1998 19:20:10 +0000 Subject: [PATCH] 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 --- mozilla/layout/generic/nsFrame.h | 8 ++++++-- mozilla/layout/html/base/src/nsFrame.h | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/mozilla/layout/generic/nsFrame.h b/mozilla/layout/generic/nsFrame.h index 85a7eb73ac8..dc9c7552e15 100644 --- a/mozilla/layout/generic/nsFrame.h +++ b/mozilla/layout/generic/nsFrame.h @@ -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) { diff --git a/mozilla/layout/html/base/src/nsFrame.h b/mozilla/layout/html/base/src/nsFrame.h index 85a7eb73ac8..dc9c7552e15 100644 --- a/mozilla/layout/html/base/src/nsFrame.h +++ b/mozilla/layout/html/base/src/nsFrame.h @@ -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) {