From 94a677809acb202e4723f123fbf53d1b946b7b32 Mon Sep 17 00:00:00 2001 From: "L. David Baron" Date: Mon, 29 Dec 2008 10:07:36 -0500 Subject: [PATCH] Give nsPageBreakFrame a frame name for DEBUGging code. (Bug 468645) r+sr=bzbarsky --- layout/generic/nsPageFrame.cpp | 8 +++++++- layout/generic/nsPageFrame.h | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/layout/generic/nsPageFrame.cpp b/layout/generic/nsPageFrame.cpp index 26455b91dbba..4e55356e8a54 100644 --- a/layout/generic/nsPageFrame.cpp +++ b/layout/generic/nsPageFrame.cpp @@ -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 diff --git a/layout/generic/nsPageFrame.h b/layout/generic/nsPageFrame.h index bb3fdb3e9e20..1742f5c681cc 100644 --- a/layout/generic/nsPageFrame.h +++ b/layout/generic/nsPageFrame.h @@ -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();