mochitest bustage fix from bug 392928.

git-svn-id: svn://10.0.0.236/trunk@233169 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
tor%cs.brown.edu
2007-08-27 23:45:16 +00:00
parent 88dda3388b
commit 8c193b7dc6

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;