diff --git a/layout/generic/nsLineLayout.cpp b/layout/generic/nsLineLayout.cpp index 935e93d9758b..7c31efd4721f 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) {