mochitest bustage fix from bug 392928.

This commit is contained in:
tor@cs.brown.edu 2007-08-27 16:45:16 -07:00
parent db3bc91cfc
commit d942c9036e

View File

@ -569,7 +569,9 @@ nsSVGOuterSVGFrame::GetCanvasTM()
// our content is the document element so we must premultiply the values
// of its currentScale and currentTranslate properties
if (svgElement->mEnumAttributes[nsSVGSVGElement::ZOOMANDPAN].GetAnimValue()
if (mCurrentScale &&
mCurrentTranslate &&
svgElement->mEnumAttributes[nsSVGSVGElement::ZOOMANDPAN].GetAnimValue()
== nsIDOMSVGZoomAndPan::SVG_ZOOMANDPAN_MAGNIFY) {
nsCOMPtr<nsIDOMSVGMatrix> zoomPanMatrix;
nsCOMPtr<nsIDOMSVGMatrix> temp;