mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 753835: Clip to mask image rather than relying on EXTEND_NONE. r=roc
This commit is contained in:
parent
16253d7e0f
commit
2b663f11cf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user