Bug 619500: Part 4. Remove one unused data member in SVGDrawingParameters; r=dholbert draft
authorCJKu <cku@mozilla.com>
Tue, 08 Mar 2016 11:35:00 +0800
changeset 338040 a8ca194826427d1836bb44de9bbfdeeb029014d2
parent 338039 4b9cc21d969489da77fead923a7c0ca369c79581
child 515703 8c2d283c959df70f2ddd516f40fdde0c323403b3
push id12405
push usercku@mozilla.com
push dateTue, 08 Mar 2016 03:35:29 +0000
reviewersdholbert
bugs619500
milestone47.0a1
Bug 619500: Part 4. Remove one unused data member in SVGDrawingParameters; r=dholbert MozReview-Commit-ID: Ia4BFYW0NEa
image/VectorImage.cpp
--- a/image/VectorImage.cpp
+++ b/image/VectorImage.cpp
@@ -758,34 +758,32 @@ struct SVGDrawingParameters
                        const nsIntSize& aSize,
                        const ImageRegion& aRegion,
                        Filter aFilter,
                        const Maybe<SVGImageContext>& aSVGContext,
                        float aAnimationTime,
                        uint32_t aFlags)
     : context(aContext)
     , size(aSize.width, aSize.height)
-    , imageRect(0, 0, aSize.width, aSize.height)
     , region(aRegion)
     , filter(aFilter)
     , svgContext(aSVGContext)
     , viewportSize(aSize)
     , animationTime(aAnimationTime)
     , flags(aFlags)
     , opacity(aSVGContext ? aSVGContext->GetGlobalOpacity() : 1.0)
   {
     if (aSVGContext) {
       CSSIntSize sz = aSVGContext->GetViewportSize();
       viewportSize = nsIntSize(sz.width, sz.height); // XXX losing unit
     }
   }
 
   gfxContext*                   context;
   IntSize                       size;
-  IntRect                       imageRect;
   ImageRegion                   region;
   Filter                        filter;
   const Maybe<SVGImageContext>& svgContext;
   nsIntSize                     viewportSize;
   float                         animationTime;
   uint32_t                      flags;
   gfxFloat                      opacity;
 };