From 413669e5d55c6b6d0a535554085efc5b981997ba Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Fri, 13 Nov 1998 02:20:31 +0000 Subject: [PATCH] Added ListTag() member function --- layout/generic/nsHTMLFrame.cpp | 14 ++++++++++++++ layout/html/base/src/nsHTMLFrame.cpp | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/layout/generic/nsHTMLFrame.cpp b/layout/generic/nsHTMLFrame.cpp index 0ba2a37cf3b..067f3dedd58 100644 --- a/layout/generic/nsHTMLFrame.cpp +++ b/layout/generic/nsHTMLFrame.cpp @@ -60,6 +60,8 @@ public: return NS_OK; } + NS_IMETHOD ListTag(FILE* out) const; + protected: virtual PRIntn GetSkipSides() const; }; @@ -233,3 +235,15 @@ RootFrame::HandleEvent(nsIPresContext& aPresContext, return NS_OK; } +// Output the frame's tag +NS_IMETHODIMP +RootFrame::ListTag(FILE* out) const +{ + if (nsnull == mContent) { + fprintf(out, "*Root(-1)@%p", this); + } else { + return nsFrame::ListTag(out); + } +} + + diff --git a/layout/html/base/src/nsHTMLFrame.cpp b/layout/html/base/src/nsHTMLFrame.cpp index 0ba2a37cf3b..067f3dedd58 100644 --- a/layout/html/base/src/nsHTMLFrame.cpp +++ b/layout/html/base/src/nsHTMLFrame.cpp @@ -60,6 +60,8 @@ public: return NS_OK; } + NS_IMETHOD ListTag(FILE* out) const; + protected: virtual PRIntn GetSkipSides() const; }; @@ -233,3 +235,15 @@ RootFrame::HandleEvent(nsIPresContext& aPresContext, return NS_OK; } +// Output the frame's tag +NS_IMETHODIMP +RootFrame::ListTag(FILE* out) const +{ + if (nsnull == mContent) { + fprintf(out, "*Root(-1)@%p", this); + } else { + return nsFrame::ListTag(out); + } +} + +