Bug 445268. Initialize gfxRect to empty, it doesn't do it automatically. Should fix regression from bug 416305. r=longsonr,sr=mats
authorRobert O'Callahan <robert@ocallahan.org>
Tue, 15 Jul 2008 20:49:42 +1200
changeset 15944 d0a71ca639ee8aab869298b72fee63b9d040dcc0
parent 15943 de1a57331d938a30e8b6160bd576c182874e1985
child 15945 23f7948191ec29162083e16e20eede470ca3b839
push idunknown
push userunknown
push dateunknown
reviewerslongsonr, mats
bugs445268, 416305
milestone1.9.1a1pre
Bug 445268. Initialize gfxRect to empty, it doesn't do it automatically. Should fix regression from bug 416305. r=longsonr,sr=mats
layout/svg/base/src/nsSVGFilterInstance.cpp
--- a/layout/svg/base/src/nsSVGFilterInstance.cpp
+++ b/layout/svg/base/src/nsSVGFilterInstance.cpp
@@ -92,17 +92,17 @@ nsSVGFilterInstance::UserSpaceToFilterSp
   return r;
 }
 
 void
 nsSVGFilterInstance::ComputeFilterPrimitiveSubregion(PrimitiveInfo* aPrimitive)
 {
   nsSVGFE* fE = aPrimitive->mFE;
 
-  gfxRect defaultFilterSubregion;
+  gfxRect defaultFilterSubregion(0,0,0,0);
   if (fE->SubregionIsUnionOfRegions()) {
     for (PRUint32 i = 0; i < aPrimitive->mInputs.Length(); ++i) {
       defaultFilterSubregion = 
           defaultFilterSubregion.Union(
               aPrimitive->mInputs[i]->mImage.mFilterPrimitiveSubregion);
     }
   } else {
     defaultFilterSubregion =