diff --git a/layout/svg/base/src/nsSVGOuterSVGFrame.cpp b/layout/svg/base/src/nsSVGOuterSVGFrame.cpp index d1125ac1fdb0..6b9236bc50a9 100644 --- a/layout/svg/base/src/nsSVGOuterSVGFrame.cpp +++ b/layout/svg/base/src/nsSVGOuterSVGFrame.cpp @@ -785,9 +785,7 @@ nsSVGOuterSVGFrame::GetCanvasTM() // our content is the document element so we must premultiply the values // of its currentScale and currentTranslate properties if (mCurrentScale && - mCurrentTranslate && - svgElement->mEnumAttributes[nsSVGSVGElement::ZOOMANDPAN].GetAnimValue() - == nsIDOMSVGZoomAndPan::SVG_ZOOMANDPAN_MAGNIFY) { + mCurrentTranslate) { nsCOMPtr zoomPanMatrix; nsCOMPtr temp; float scale, x, y;