mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 955917 - Remove unused functions from nsSVGUtils. r=dholbert
This commit is contained in:
parent
dbaf4961b0
commit
f044a11867
@ -873,22 +873,6 @@ nsSVGUtils::CompositeSurfaceMatrix(gfxContext *aContext,
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
nsSVGUtils::CompositePatternMatrix(gfxContext *aContext,
|
||||
gfxPattern *aPattern,
|
||||
const gfxMatrix &aCTM, float aWidth, float aHeight, float aOpacity)
|
||||
{
|
||||
if (aCTM.IsSingular())
|
||||
return;
|
||||
|
||||
aContext->Save();
|
||||
SetClipRect(aContext, aCTM, gfxRect(0, 0, aWidth, aHeight));
|
||||
aContext->Multiply(aCTM);
|
||||
aContext->SetPattern(aPattern);
|
||||
aContext->Paint(aOpacity);
|
||||
aContext->Restore();
|
||||
}
|
||||
|
||||
void
|
||||
nsSVGUtils::SetClipRect(gfxContext *aContext,
|
||||
const gfxMatrix &aCTM,
|
||||
@ -902,17 +886,6 @@ nsSVGUtils::SetClipRect(gfxContext *aContext,
|
||||
aContext->Clip(aRect);
|
||||
}
|
||||
|
||||
void
|
||||
nsSVGUtils::ClipToGfxRect(nsIntRect* aRect, const gfxRect& aGfxRect)
|
||||
{
|
||||
gfxRect r = aGfxRect;
|
||||
r.RoundOut();
|
||||
gfxRect r2(aRect->x, aRect->y, aRect->width, aRect->height);
|
||||
r = r.Intersect(r2);
|
||||
*aRect = nsIntRect(int32_t(r.X()), int32_t(r.Y()),
|
||||
int32_t(r.Width()), int32_t(r.Height()));
|
||||
}
|
||||
|
||||
gfxRect
|
||||
nsSVGUtils::GetBBox(nsIFrame *aFrame, uint32_t aFlags)
|
||||
{
|
||||
|
@ -425,19 +425,10 @@ public:
|
||||
const gfxPoint &aSurfaceOffset,
|
||||
const gfxMatrix &aCTM);
|
||||
|
||||
static void CompositePatternMatrix(gfxContext *aContext,
|
||||
gfxPattern *aPattern,
|
||||
const gfxMatrix &aCTM, float aWidth, float aHeight, float aOpacity);
|
||||
|
||||
static void SetClipRect(gfxContext *aContext,
|
||||
const gfxMatrix &aCTM,
|
||||
const gfxRect &aRect);
|
||||
|
||||
/**
|
||||
* Restricts aRect to pixels that intersect aGfxRect.
|
||||
*/
|
||||
static void ClipToGfxRect(nsIntRect* aRect, const gfxRect& aGfxRect);
|
||||
|
||||
/* Using group opacity instead of fill or stroke opacity on a
|
||||
* geometry object seems to be a common authoring mistake. If we're
|
||||
* not applying filters and not both stroking and filling, we can
|
||||
|
Loading…
Reference in New Issue
Block a user