diff --git a/gfx/thebes/gfxBlur.cpp b/gfx/thebes/gfxBlur.cpp index 48a485e959b1..448251205178 100644 --- a/gfx/thebes/gfxBlur.cpp +++ b/gfx/thebes/gfxBlur.cpp @@ -80,7 +80,7 @@ gfxAlphaBoxBlur::Init(const gfxRect& aRect, } void -gfxAlphaBoxBlur::Paint(gfxContext* aDestinationCtx, const gfxPoint& offset) +gfxAlphaBoxBlur::Paint(gfxContext* aDestinationCtx) { if (!mContext) return; @@ -95,14 +95,14 @@ gfxAlphaBoxBlur::Paint(gfxContext* aDestinationCtx, const gfxPoint& offset) aDestinationCtx->Save(); aDestinationCtx->NewPath(); 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); aDestinationCtx->Rectangle(dirty); aDestinationCtx->Clip(); - aDestinationCtx->Mask(mImageSurface, offset); + aDestinationCtx->Mask(mImageSurface, gfxPoint()); aDestinationCtx->Restore(); } else { - aDestinationCtx->Mask(mImageSurface, offset); + aDestinationCtx->Mask(mImageSurface, gfxPoint()); } } diff --git a/gfx/thebes/gfxBlur.h b/gfx/thebes/gfxBlur.h index 259f3c336785..59707fa516ae 100644 --- a/gfx/thebes/gfxBlur.h +++ b/gfx/thebes/gfxBlur.h @@ -89,7 +89,7 @@ public: * @param aDestinationCtx The graphics context on which to apply the * 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