Bug 781731 - Fixed failed assertion in reftest1; r=doublec
authorAnthony Jones <ajones@mozilla.com>
Mon, 27 Aug 2012 22:01:47 +1200
changeset 105588 cd5eb6f6f4954a83fb37ec064b0c8e09d8750463
parent 105587 dfdfdf5ae236757f9267dc3a7fae8f951fcc9a92
child 105589 a8f183cf4b38272152dac2a43819592406ec54a6
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewersdoublec
bugs781731
milestone17.0a1
Bug 781731 - Fixed failed assertion in reftest1; r=doublec
gfx/2d/Blur.cpp
gfx/2d/Blur.h
--- a/gfx/2d/Blur.cpp
+++ b/gfx/2d/Blur.cpp
@@ -382,17 +382,17 @@ AlphaBoxBlur::AlphaBoxBlur(const Rect& a
       mData = static_cast<unsigned char*>(malloc(size.value()));
       memset(mData, 0, size.value());
     }
   }
 }
 
 AlphaBoxBlur::AlphaBoxBlur(uint8_t* aData,
                            const Rect& aRect,
-                           int8_t aStride,
+                           int32_t aStride,
                            float aSigma)
   : mSpreadRadius(),
     mBlurRadius(CalculateBlurRadius(Point(aSigma, aSigma))),
     mData(aData),
     mFreeData(false),
     mStride(aStride),
     mRect(aRect.x, aRect.y, aRect.width, aRect.height)
 {
--- a/gfx/2d/Blur.h
+++ b/gfx/2d/Blur.h
@@ -54,17 +54,17 @@ public:
   AlphaBoxBlur(const Rect& aRect,
                const IntSize& aSpreadRadius,
                const IntSize& aBlurRadius,
                const Rect* aDirtyRect,
                const Rect* aSkipRect);
 
   AlphaBoxBlur(uint8_t* aData,
                const Rect& aRect,
-               int8_t aStride,
+               int32_t aStride,
                float aSigma);
 
   ~AlphaBoxBlur();
 
   /**
    * Return the pointer to memory allocated by the constructor for the 8-bit
    * alpha surface you need to be blurred. After you draw to this surface, call
    * Blur(), below, to have its contents blurred.