Skip to content

Commit

Permalink
Additional patch for Bug 425265, r+sr=bz
Browse files Browse the repository at this point in the history
  • Loading branch information
Olli Pettay authored and Olli Pettay committed Mar 30, 2009
1 parent 7590460 commit e7f06f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions layout/svg/base/src/nsSVGGlyphFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -298,14 +298,14 @@ 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);
}

return nsSVGGlyphFrameBase::Init(aContent, aParent, aPrevInFlow);
}
#endif /* DEBUG */

nsIAtom *
nsSVGGlyphFrame::GetType() const
Expand Down
2 changes: 0 additions & 2 deletions layout/svg/base/src/nsSVGGlyphFrame.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7f06f5

Please sign in to comment.