Bug 783041 - Minor cleanup: remove local 'shadowIntRect' and use 'mRect' instead since it has the same value, and use Intersect instead of IntersectRect since we're not using its return value. part 2, r=roc

This commit is contained in:
Mats Palmgren 2012-08-16 16:13:29 +02:00
parent dc4d68085f
commit 82160c5042

View File

@ -362,13 +362,11 @@ AlphaBoxBlur::AlphaBoxBlur(const Rect& aRect,
skipRect.Deflate(Size(aBlurRadius + aSpreadRadius));
mSkipRect = IntRect(skipRect.x, skipRect.y, skipRect.width, skipRect.height);
IntRect shadowIntRect(rect.x, rect.y, rect.width, rect.height);
mSkipRect.IntersectRect(mSkipRect, shadowIntRect);
if (mSkipRect.IsEqualInterior(shadowIntRect))
mSkipRect = mSkipRect.Intersect(mRect);
if (mSkipRect.IsEqualInterior(mRect))
return;
mSkipRect -= shadowIntRect.TopLeft();
mSkipRect -= mRect.TopLeft();
} else {
mSkipRect = IntRect(0, 0, 0, 0);
}