Bug 940845 - Part 1: Remove unused offset parameter from gfxAlphaBoxBlur. r=roc

This commit is contained in:
Matt Woodrow 2013-11-26 12:05:36 +13:00
Родитель 87cdf162a3
Коммит 701b35213b
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -80,7 +80,7 @@ gfxAlphaBoxBlur::Init(const gfxRect& aRect,
} }
void void
gfxAlphaBoxBlur::Paint(gfxContext* aDestinationCtx, const gfxPoint& offset) gfxAlphaBoxBlur::Paint(gfxContext* aDestinationCtx)
{ {
if (!mContext) if (!mContext)
return; return;
@ -95,14 +95,14 @@ gfxAlphaBoxBlur::Paint(gfxContext* aDestinationCtx, const gfxPoint& offset)
aDestinationCtx->Save(); aDestinationCtx->Save();
aDestinationCtx->NewPath(); aDestinationCtx->NewPath();
gfxRect dirty(dirtyrect->x, dirtyrect->y, dirtyrect->width, dirtyrect->height); gfxRect dirty(dirtyrect->x, dirtyrect->y, dirtyrect->width, dirtyrect->height);
gfxRect imageRect(offset - mImageSurface->GetDeviceOffset(), mImageSurface->GetSize()); gfxRect imageRect(-mImageSurface->GetDeviceOffset(), mImageSurface->GetSize());
dirty.IntersectRect(dirty, imageRect); dirty.IntersectRect(dirty, imageRect);
aDestinationCtx->Rectangle(dirty); aDestinationCtx->Rectangle(dirty);
aDestinationCtx->Clip(); aDestinationCtx->Clip();
aDestinationCtx->Mask(mImageSurface, offset); aDestinationCtx->Mask(mImageSurface, gfxPoint());
aDestinationCtx->Restore(); aDestinationCtx->Restore();
} else { } else {
aDestinationCtx->Mask(mImageSurface, offset); aDestinationCtx->Mask(mImageSurface, gfxPoint());
} }
} }

Просмотреть файл

@ -89,7 +89,7 @@ public:
* @param aDestinationCtx The graphics context on which to apply the * @param aDestinationCtx The graphics context on which to apply the
* blurred mask. * blurred mask.
*/ */
void Paint(gfxContext* aDestinationCtx, const gfxPoint& offset = gfxPoint(0.0, 0.0)); void Paint(gfxContext* aDestinationCtx);
/** /**
* Calculates a blur radius that, when used with box blur, approximates * Calculates a blur radius that, when used with box blur, approximates