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 0b43a90166
commit febc31f5d7

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;