From 9f430aad1b39f9f082b2e01853dd1de5d60e1f3c Mon Sep 17 00:00:00 2001 From: "reed@reedloden.com" Date: Wed, 21 Nov 2007 13:09:12 -0800 Subject: [PATCH] Bug 404636 - "Building without SVG fails" [p=romaxa@gmail.com (romaxa) r+sr=roc a1.9=schrep] --- layout/generic/nsLineLayout.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layout/generic/nsLineLayout.cpp b/layout/generic/nsLineLayout.cpp index 935e93d9758..7c31efd4721 100644 --- a/layout/generic/nsLineLayout.cpp +++ b/layout/generic/nsLineLayout.cpp @@ -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(aFrame)->GetIntrinsicSize().width.GetUnit() == eStyleUnit_Percent) {