Bug 461751 - zoomAndPan=disable prevents programmatic zoom. r+sr=roc

This commit is contained in:
Robert Longson 2008-11-03 10:01:28 +00:00
parent 6b5811b656
commit 61e59e1ed3

View File

@ -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<nsIDOMSVGMatrix> zoomPanMatrix;
nsCOMPtr<nsIDOMSVGMatrix> temp;
float scale, x, y;