Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 753835: Clip to mask image rather than relying on EXTEND_NONE. r=roc
  • Loading branch information
Bas-moz committed May 12, 2012
1 parent 5b32d15 commit a461d0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gfx/thebes/gfxBlur.cpp
Expand Up @@ -114,6 +114,8 @@ 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());
dirty.IntersectRect(dirty, imageRect);
aDestinationCtx->Rectangle(dirty);
aDestinationCtx->Clip();
aDestinationCtx->Mask(mImageSurface, offset);
Expand Down

0 comments on commit a461d0b

Please sign in to comment.