mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 990338 - Remove FillWithMask since it's dead code. r=nical
This commit is contained in:
parent
3c534d622c
commit
b6b7e6b30e
@ -174,32 +174,6 @@ FillRectWithMask(DrawTarget* aDT,
|
|||||||
aDT->FillRect(aRect, SurfacePattern(aSurface, ExtendMode::CLAMP, Matrix(), aFilter), aOptions);
|
aDT->FillRect(aRect, SurfacePattern(aSurface, ExtendMode::CLAMP, Matrix(), aFilter), aOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
FillWithMask(gfxContext* aContext, float aOpacity, Layer* aMaskLayer)
|
|
||||||
{
|
|
||||||
AutoMaskData mask;
|
|
||||||
if (GetMaskData(aMaskLayer, &mask)) {
|
|
||||||
if (aOpacity < 1.0) {
|
|
||||||
aContext->PushGroup(gfxContentType::COLOR_ALPHA);
|
|
||||||
aContext->FillWithOpacity(aOpacity);
|
|
||||||
aContext->PopGroupToSource();
|
|
||||||
aContext->SetMatrix(ThebesMatrix(mask.GetTransform()));
|
|
||||||
aContext->Mask(mask.GetSurface());
|
|
||||||
} else {
|
|
||||||
aContext->Save();
|
|
||||||
aContext->Clip();
|
|
||||||
aContext->SetMatrix(ThebesMatrix(mask.GetTransform()));
|
|
||||||
aContext->Mask(mask.GetSurface());
|
|
||||||
aContext->NewPath();
|
|
||||||
aContext->Restore();
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// if there is no mask, just fill normally
|
|
||||||
aContext->FillWithOpacity(aOpacity);
|
|
||||||
}
|
|
||||||
|
|
||||||
BasicImplData*
|
BasicImplData*
|
||||||
ToData(Layer* aLayer)
|
ToData(Layer* aLayer)
|
||||||
{
|
{
|
||||||
|
@ -94,7 +94,6 @@ void
|
|||||||
PaintWithMask(gfxContext* aContext, float aOpacity, Layer* aMaskLayer);
|
PaintWithMask(gfxContext* aContext, float aOpacity, Layer* aMaskLayer);
|
||||||
|
|
||||||
// Fill the rect with the source, using a mask and opacity, if present
|
// Fill the rect with the source, using a mask and opacity, if present
|
||||||
void FillWithMask(gfxContext* aContext, float aOpacity, Layer* aMaskLayer);
|
|
||||||
void
|
void
|
||||||
FillRectWithMask(gfx::DrawTarget* aDT,
|
FillRectWithMask(gfx::DrawTarget* aDT,
|
||||||
const gfx::Rect& aRect,
|
const gfx::Rect& aRect,
|
||||||
|
Loading…
Reference in New Issue
Block a user