Give nsPageBreakFrame a frame name for DEBUGging code. (Bug 468645) r+sr=bzbarsky

This commit is contained in:
L. David Baron 2008-12-29 10:07:36 -05:00
Родитель 9532b5af90
Коммит 94a677809a
2 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

@ -658,4 +658,10 @@ nsPageBreakFrame::GetType() const
return nsGkAtoms::pageBreakFrame;
}
#ifdef DEBUG
NS_IMETHODIMP
nsPageBreakFrame::GetFrameName(nsAString& aResult) const
{
return MakeFrameName(NS_LITERAL_STRING("PageBreak"), aResult);
}
#endif

Просмотреть файл

@ -140,6 +140,10 @@ class nsPageBreakFrame : public nsLeafFrame {
virtual nsIAtom* GetType() const;
#ifdef NS_DEBUG
NS_IMETHOD GetFrameName(nsAString& aResult) const;
#endif
protected:
virtual nscoord GetIntrinsicWidth();