Bug 404636 - "Building without SVG fails" [p=romaxa@gmail.com (romaxa) r+sr=roc a1.9=schrep]

This commit is contained in:
reed@reedloden.com 2007-11-21 13:09:12 -08:00
parent 83d6e6c06d
commit 9f430aad1b

View File

@ -760,7 +760,10 @@ IsPercentageAware(const nsIFrame* aFrame)
}
// Handle SVG, which doesn't map width/height into style
if ((fType == nsGkAtoms::svgOuterSVGFrame ||
if ((
#ifdef MOZ_SVG
fType == nsGkAtoms::svgOuterSVGFrame ||
#endif
fType == nsGkAtoms::subDocumentFrame) &&
const_cast<nsIFrame*>(aFrame)->GetIntrinsicSize().width.GetUnit() ==
eStyleUnit_Percent) {