Bug 428379 - Fix translated foreignObject zooming. r=jwatt,sr=roc,a1.9=beltzner
authorlongsonr@gmail.com
Tue, 15 Apr 2008 03:48:09 -0700
changeset 14337 0ef673e00fa33439c04f78625e5d55d4fd119c63
parent 14336 bd2afa077f6ed999915d6af5321df938ac9c00c7
child 14338 0cc10f9f7850d06e01226a86de42c48f57738bfc
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwatt, roc
bugs428379
milestone1.9pre
Bug 428379 - Fix translated foreignObject zooming. r=jwatt,sr=roc,a1.9=beltzner
layout/svg/base/src/nsSVGForeignObjectFrame.cpp
--- a/layout/svg/base/src/nsSVGForeignObjectFrame.cpp
+++ b/layout/svg/base/src/nsSVGForeignObjectFrame.cpp
@@ -254,19 +254,19 @@ nsSVGForeignObjectFrame::PaintSVG(nsSVGR
                                 PresContext()->AppUnitsPerDevPixel());
   nsCOMPtr<nsIDOMSVGMatrix> cssPxToDevPxMatrix;
   NS_NewSVGMatrix(getter_AddRefs(cssPxToDevPxMatrix),
                   cssPxPerDevPx, 0.0f,
                   0.0f, cssPxPerDevPx);
 
   nsCOMPtr<nsIDOMSVGMatrix> localTM = GetTMIncludingOffset();
 
-  // PRE-multiply px conversion!
+  // POST-multiply px conversion!
   nsCOMPtr<nsIDOMSVGMatrix> tm;
-  cssPxToDevPxMatrix->Multiply(localTM, getter_AddRefs(tm));
+  localTM->Multiply(cssPxToDevPxMatrix, getter_AddRefs(tm));
 
   gfxMatrix matrix = nsSVGUtils::ConvertSVGMatrixToThebes(tm);
 
   nsIRenderingContext *ctx = aContext->GetRenderingContext();
 
   if (!ctx || matrix.IsSingular()) {
     NS_WARNING("Can't render foreignObject element!");
     return NS_ERROR_FAILURE;