From e98ecaebf76a3bbe1eddb621b3dbaebadbbdade3 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Sat, 5 Dec 1998 16:03:07 +0000 Subject: [PATCH] Made IndentBy public --- layout/generic/nsFrame.h | 16 ++++++++-------- layout/html/base/src/nsFrame.h | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/layout/generic/nsFrame.h b/layout/generic/nsFrame.h index ab57cbb350f5..7f82644d314b 100644 --- a/layout/generic/nsFrame.h +++ b/layout/generic/nsFrame.h @@ -280,7 +280,15 @@ public: fprintf(out, "@%p", this); } + static void IndentBy(FILE* out, PRInt32 aIndent) { + while (--aIndent >= 0) fputs(" ", out); + } + protected: + // Protected constructor and destructor + nsFrame(); + virtual ~nsFrame(); + virtual void NewContentIsBefore(nsIPresContext& aPresContext, nsIRenderingContext * aRendContext, nsGUIEvent * aEvent, @@ -309,10 +317,6 @@ protected: // Style post processing hook NS_IMETHOD DidSetStyleContext(nsIPresContext* aPresContext); - // Protected constructor and destructor - nsFrame(); - virtual ~nsFrame(); - void SizeOfWithoutThis(nsISizeOfHandler* aHandler) const; /** @@ -326,10 +330,6 @@ protected: */ virtual void DumpBaseRegressionData(FILE* out, PRInt32 aIndent); - static void IndentBy(FILE* out, PRInt32 aIndent) { - while (--aIndent >= 0) fputs(" ", out); - } - nsresult MakeFrameName(const char* aKind, nsString& aResult) const; static void XMLQuote(nsString& aString); diff --git a/layout/html/base/src/nsFrame.h b/layout/html/base/src/nsFrame.h index ab57cbb350f5..7f82644d314b 100644 --- a/layout/html/base/src/nsFrame.h +++ b/layout/html/base/src/nsFrame.h @@ -280,7 +280,15 @@ public: fprintf(out, "@%p", this); } + static void IndentBy(FILE* out, PRInt32 aIndent) { + while (--aIndent >= 0) fputs(" ", out); + } + protected: + // Protected constructor and destructor + nsFrame(); + virtual ~nsFrame(); + virtual void NewContentIsBefore(nsIPresContext& aPresContext, nsIRenderingContext * aRendContext, nsGUIEvent * aEvent, @@ -309,10 +317,6 @@ protected: // Style post processing hook NS_IMETHOD DidSetStyleContext(nsIPresContext* aPresContext); - // Protected constructor and destructor - nsFrame(); - virtual ~nsFrame(); - void SizeOfWithoutThis(nsISizeOfHandler* aHandler) const; /** @@ -326,10 +330,6 @@ protected: */ virtual void DumpBaseRegressionData(FILE* out, PRInt32 aIndent); - static void IndentBy(FILE* out, PRInt32 aIndent) { - while (--aIndent >= 0) fputs(" ", out); - } - nsresult MakeFrameName(const char* aKind, nsString& aResult) const; static void XMLQuote(nsString& aString);