[Debug only] Add nsTableCaptionFrame::GetFrameName() returning "Caption". b=343386 r+sr=bzbarsky

This commit is contained in:
mats.palmgren%bredband.net 2006-07-20 08:50:26 +00:00
parent 72e3b47df0
commit 26a1119b47
2 changed files with 19 additions and 7 deletions

View File

@ -72,19 +72,20 @@ nsTableCaptionFrame::~nsTableCaptionFrame()
{
}
void
nsTableOuterFrame::Destroy()
{
mCaptionFrames.DestroyFrames();
nsHTMLContainerFrame::Destroy();
}
nsIAtom*
nsTableCaptionFrame::GetType() const
{
return nsLayoutAtoms::tableCaptionFrame;
}
#ifdef NS_DEBUG
NS_IMETHODIMP
nsTableCaptionFrame::GetFrameName(nsAString& aResult) const
{
return MakeFrameName(NS_LITERAL_STRING("Caption"), aResult);
}
#endif
nsIFrame*
NS_NewTableCaptionFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
{
@ -160,6 +161,13 @@ nsTableOuterFrame::Init(
return rv;
}
void
nsTableOuterFrame::Destroy()
{
mCaptionFrames.DestroyFrames();
nsHTMLContainerFrame::Destroy();
}
nsIFrame*
nsTableOuterFrame::GetFirstChild(nsIAtom* aListName) const
{

View File

@ -56,6 +56,10 @@ public:
virtual nsIAtom* GetType() const;
friend nsIFrame* NS_NewTableCaptionFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
#ifdef NS_DEBUG
NS_IMETHOD GetFrameName(nsAString& aResult) const;
#endif
protected:
nsTableCaptionFrame(nsStyleContext* aContext);
virtual ~nsTableCaptionFrame();