From b952773b9277507f927a7890c1faf30c2dda1362 Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Tue, 20 Apr 1999 19:11:37 +0000 Subject: [PATCH] Added GetFrameType() member function --- layout/generic/nsInlineFrame.cpp | 9 +++++++++ layout/generic/nsInlineFrame.h | 2 ++ layout/html/base/src/nsInlineFrame.cpp | 9 +++++++++ layout/html/base/src/nsInlineFrame.h | 2 ++ 4 files changed, 22 insertions(+) diff --git a/layout/generic/nsInlineFrame.cpp b/layout/generic/nsInlineFrame.cpp index 9c4668f339de..8d8a9e67dc93 100644 --- a/layout/generic/nsInlineFrame.cpp +++ b/layout/generic/nsInlineFrame.cpp @@ -108,6 +108,15 @@ nsPositionedInlineFrame::FirstChild(nsIAtom* aListName, nsIFrame** aFirstChild) return nsInlineFrame::FirstChild(aListName, aFirstChild); } +NS_IMETHODIMP +nsPositionedInlineFrame::GetFrameType(nsIAtom** aType) const +{ + NS_PRECONDITION(nsnull != aType, "null OUT parameter pointer"); + *aType = nsLayoutAtoms::positionedInlineFrame; + NS_ADDREF(*aType); + return NS_OK; +} + NS_IMETHODIMP nsPositionedInlineFrame::Reflow(nsIPresContext& aPresContext, nsHTMLReflowMetrics& aDesiredSize, diff --git a/layout/generic/nsInlineFrame.h b/layout/generic/nsInlineFrame.h index db12e6231fe7..6c8d52c9c05f 100644 --- a/layout/generic/nsInlineFrame.h +++ b/layout/generic/nsInlineFrame.h @@ -261,6 +261,8 @@ public: nsHTMLReflowMetrics& aDesiredSize, const nsHTMLReflowState& aReflowState, nsReflowStatus& aStatus); + + NS_IMETHOD GetFrameType(nsIAtom** aType) const; protected: nsAbsoluteContainingBlock mAbsoluteContainer; diff --git a/layout/html/base/src/nsInlineFrame.cpp b/layout/html/base/src/nsInlineFrame.cpp index 9c4668f339de..8d8a9e67dc93 100644 --- a/layout/html/base/src/nsInlineFrame.cpp +++ b/layout/html/base/src/nsInlineFrame.cpp @@ -108,6 +108,15 @@ nsPositionedInlineFrame::FirstChild(nsIAtom* aListName, nsIFrame** aFirstChild) return nsInlineFrame::FirstChild(aListName, aFirstChild); } +NS_IMETHODIMP +nsPositionedInlineFrame::GetFrameType(nsIAtom** aType) const +{ + NS_PRECONDITION(nsnull != aType, "null OUT parameter pointer"); + *aType = nsLayoutAtoms::positionedInlineFrame; + NS_ADDREF(*aType); + return NS_OK; +} + NS_IMETHODIMP nsPositionedInlineFrame::Reflow(nsIPresContext& aPresContext, nsHTMLReflowMetrics& aDesiredSize, diff --git a/layout/html/base/src/nsInlineFrame.h b/layout/html/base/src/nsInlineFrame.h index db12e6231fe7..6c8d52c9c05f 100644 --- a/layout/html/base/src/nsInlineFrame.h +++ b/layout/html/base/src/nsInlineFrame.h @@ -261,6 +261,8 @@ public: nsHTMLReflowMetrics& aDesiredSize, const nsHTMLReflowState& aReflowState, nsReflowStatus& aStatus); + + NS_IMETHOD GetFrameType(nsIAtom** aType) const; protected: nsAbsoluteContainingBlock mAbsoluteContainer;