Bug 482379: Wrap an SVG-related line with "#ifdef MOZ_SVG", to fix build failure when using --disable-svg. r+sr=roc

This commit is contained in:
Daniel Holbert 2009-03-09 19:50:36 -07:00
parent 1e935ef8ae
commit 22e1542fc2

View File

@ -3188,8 +3188,11 @@ nsLayoutUtils::InitTextRunContainerForPrinting(nsIContent* aContent,
nsIFrame* aFrame,
nsFrameState aBits)
{
NS_PRECONDITION(aFrame->GetType() == nsGkAtoms::textFrame ||
aFrame->GetType() == nsGkAtoms::svgGlyphFrame,
NS_PRECONDITION(aFrame->GetType() == nsGkAtoms::textFrame
#ifdef MOZ_SVG
|| aFrame->GetType() == nsGkAtoms::svgGlyphFrame
#endif // MOZ_SVG
,
"Wrong frame type!");
nsPresContext* presContext = aFrame->PresContext();