diff --git a/layout/svg/base/src/nsSVGGlyphFrame.cpp b/layout/svg/base/src/nsSVGGlyphFrame.cpp index e2e131e36a2d3..11477bf5d5b1f 100644 --- a/layout/svg/base/src/nsSVGGlyphFrame.cpp +++ b/layout/svg/base/src/nsSVGGlyphFrame.cpp @@ -281,12 +281,12 @@ nsSVGGlyphFrame::IsSelectable(PRBool* aIsSelectable, return rv; } -#ifdef DEBUG NS_IMETHODIMP nsSVGGlyphFrame::Init(nsIContent* aContent, nsIFrame* aParent, nsIFrame* aPrevInFlow) { +#ifdef DEBUG NS_ASSERTION(aParent, "null parent"); nsIFrame* ancestorFrame = nsSVGUtils::GetFirstNonAAncestorFrame(aParent); @@ -298,6 +298,7 @@ nsSVGGlyphFrame::Init(nsIContent* aContent, NS_ASSERTION(aContent->IsNodeOfType(nsINode::eTEXT), "trying to construct an SVGGlyphFrame for wrong content element"); +#endif /* DEBUG */ if (!PresContext()->IsDynamic()) { AddStateBits(NS_STATE_SVG_PRINTING); @@ -305,7 +306,6 @@ nsSVGGlyphFrame::Init(nsIContent* aContent, return nsSVGGlyphFrameBase::Init(aContent, aParent, aPrevInFlow); } -#endif /* DEBUG */ nsIAtom * nsSVGGlyphFrame::GetType() const diff --git a/layout/svg/base/src/nsSVGGlyphFrame.h b/layout/svg/base/src/nsSVGGlyphFrame.h index 3cf649304814e..d969e1da2915a 100644 --- a/layout/svg/base/src/nsSVGGlyphFrame.h +++ b/layout/svg/base/src/nsSVGGlyphFrame.h @@ -87,11 +87,9 @@ class nsSVGGlyphFrame : public nsSVGGlyphFrameBase, NS_IMETHOD GetSelected(PRBool *aSelected) const; NS_IMETHOD IsSelectable(PRBool* aIsSelectable, PRUint8* aSelectStyle) const; -#ifdef DEBUG NS_IMETHOD Init(nsIContent* aContent, nsIFrame* aParent, nsIFrame* aPrevInFlow); -#endif /** * Get the "type" of the frame