Bug 845125 - Fix impromper use of CheckedInt. r=jmuizelaar, a=bajaj
authorMilan Sreckovic <msreckovic@mozilla.com>
Tue, 30 Apr 2013 15:46:22 -0400
changeset 133568 840ca31cb3df78b76f79d6f033b3cb42c819456b
parent 133567 e0f84d427e27268217d735e65f3d4e6c9da973bb
child 133569 e494ef9322a460dcf6777b8b772289dbc2510247
push id3710
push userryanvm@gmail.com
push dateTue, 30 Apr 2013 23:56:21 +0000
treeherdermozilla-aurora@840ca31cb3df [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmuizelaar, bajaj
bugs845125
milestone22.0a2
Bug 845125 - Fix impromper use of CheckedInt. r=jmuizelaar, a=bajaj
gfx/2d/Blur.cpp
--- a/gfx/2d/Blur.cpp
+++ b/gfx/2d/Blur.cpp
@@ -396,17 +396,17 @@ AlphaBoxBlur::AlphaBoxBlur(const Rect& a
                            float aSigma)
   : mRect(int32_t(aRect.x), int32_t(aRect.y),
           int32_t(aRect.width), int32_t(aRect.height)),
     mSpreadRadius(),
     mBlurRadius(CalculateBlurRadius(Point(aSigma, aSigma))),
     mStride(aStride),
     mSurfaceAllocationSize(-1)
 {
-  CheckedInt<int32_t> minDataSize = CheckedInt<int32_t>(aRect.width*aRect.height);
+  CheckedInt<int32_t> minDataSize = CheckedInt<int32_t>(aRect.width)*aRect.height;
   if (minDataSize.isValid()) {
     mSurfaceAllocationSize = minDataSize.value();
   }
 }
 
 
 AlphaBoxBlur::~AlphaBoxBlur()
 {