Bug 399360 - Remove unused closure variable. r+sr=tor,a=roc

This commit is contained in:
longsonr%gmail.com 2007-10-21 09:05:41 +00:00
Родитель 32128fd6b2
Коммит ea78d9850b
9 изменённых файлов: 15 добавлений и 28 удалений

Просмотреть файл

@ -332,8 +332,7 @@ nsSVGGeometryFrame::MaybeOptimizeOpacity(float aOpacity)
}
PRBool
nsSVGGeometryFrame::SetupCairoFill(gfxContext *aContext,
void **aClosure)
nsSVGGeometryFrame::SetupCairoFill(gfxContext *aContext)
{
if (GetStyleSVG()->mFillRule == NS_STYLE_FILL_RULE_EVENODD)
aContext->SetFillRule(gfxContext::FILL_RULE_EVEN_ODD);
@ -345,7 +344,7 @@ nsSVGGeometryFrame::SetupCairoFill(gfxContext *aContext,
if (GetStateBits() & NS_STATE_SVG_FILL_PSERVER) {
nsSVGPaintServerFrame *ps = static_cast<nsSVGPaintServerFrame*>
(GetProperty(nsGkAtoms::fill));
return ps->SetupPaintServer(aContext, this, opacity, aClosure);
return ps->SetupPaintServer(aContext, this, opacity);
} else if (GetStyleSVG()->mFill.mType == eStyleSVGPaintType_Server) {
SetupCairoColor(aContext,
GetStyleSVG()->mFill.mFallbackColor,
@ -405,8 +404,7 @@ nsSVGGeometryFrame::SetupCairoStrokeHitGeometry(gfxContext *aContext)
}
PRBool
nsSVGGeometryFrame::SetupCairoStroke(gfxContext *aContext,
void **aClosure)
nsSVGGeometryFrame::SetupCairoStroke(gfxContext *aContext)
{
SetupCairoStrokeHitGeometry(aContext);
@ -415,7 +413,7 @@ nsSVGGeometryFrame::SetupCairoStroke(gfxContext *aContext,
if (GetStateBits() & NS_STATE_SVG_STROKE_PSERVER) {
nsSVGPaintServerFrame *ps = static_cast<nsSVGPaintServerFrame*>
(GetProperty(nsGkAtoms::stroke));
return ps->SetupPaintServer(aContext, this, opacity, aClosure);
return ps->SetupPaintServer(aContext, this, opacity);
} else if (GetStyleSVG()->mStroke.mType == eStyleSVGPaintType_Server) {
SetupCairoColor(aContext,
GetStyleSVG()->mStroke.mFallbackColor,

Просмотреть файл

@ -98,7 +98,7 @@ public:
* Set up a cairo context for filling a path
* @return PR_FALSE to skip rendering
*/
PRBool SetupCairoFill(gfxContext *aContext, void **aClosure);
PRBool SetupCairoFill(gfxContext *aContext);
// Set up a cairo context for measuring a stroked path
void SetupCairoStrokeGeometry(gfxContext *aContext);
@ -110,7 +110,7 @@ public:
* Set up a cairo context for stroking a path
* @return PR_FALSE to skip rendering
*/
PRBool SetupCairoStroke(gfxContext *aContext, void **aClosure);
PRBool SetupCairoStroke(gfxContext *aContext);
protected:
virtual nsresult UpdateGraphic(PRBool suppressInvalidation = PR_FALSE) = 0;

Просмотреть файл

@ -299,12 +299,11 @@ nsSVGGlyphFrame::PaintSVG(nsSVGRenderState *aContext, nsRect *aDirtyRect)
return NS_OK;
}
void *closure;
if (HasFill() && SetupCairoFill(gfx, &closure)) {
if (HasFill() && SetupCairoFill(gfx)) {
LoopCharacters(gfx, text, cp, FILL);
}
if (HasStroke() && SetupCairoStroke(gfx, &closure)) {
if (HasStroke() && SetupCairoStroke(gfx)) {
gfx->NewPath();
LoopCharacters(gfx, text, cp, STROKE);
gfx->Stroke();

Просмотреть файл

@ -324,11 +324,8 @@ nsSVGGradientFrame::GetSpreadMethod()
PRBool
nsSVGGradientFrame::SetupPaintServer(gfxContext *aContext,
nsSVGGeometryFrame *aSource,
float aGraphicOpacity,
void **aClosure)
float aGraphicOpacity)
{
*aClosure = nsnull;
PRUint32 nStops = GetStopCount();
// SVG specification says that no stops should be treated like

Просмотреть файл

@ -63,8 +63,7 @@ public:
// nsSVGPaintServerFrame methods:
virtual PRBool SetupPaintServer(gfxContext *aContext,
nsSVGGeometryFrame *aSource,
float aGraphicOpacity,
void **aClosure);
float aGraphicOpacity);
// nsISupports interface:
NS_IMETHOD QueryInterface(const nsIID& aIID, void** aInstancePtr);

Просмотреть файл

@ -59,8 +59,7 @@ public:
*/
virtual PRBool SetupPaintServer(gfxContext *aContext,
nsSVGGeometryFrame *aSource,
float aOpacity,
void **aClosure) = 0;
float aOpacity) = 0;
// nsISupports interface:
NS_IMETHOD QueryInterface(const nsIID& aIID, void** aInstancePtr);

Просмотреть файл

@ -642,12 +642,11 @@ nsSVGPathGeometryFrame::Render(nsSVGRenderState *aContext)
break;
}
void *closure;
if (HasFill() && SetupCairoFill(gfx, &closure)) {
if (HasFill() && SetupCairoFill(gfx)) {
gfx->Fill();
}
if (HasStroke() && SetupCairoStroke(gfx, &closure)) {
if (HasStroke() && SetupCairoStroke(gfx)) {
gfx->Stroke();
}

Просмотреть файл

@ -831,11 +831,8 @@ nsSVGPatternFrame::GetCallerGeometry(nsIDOMSVGMatrix **aCTM,
PRBool
nsSVGPatternFrame::SetupPaintServer(gfxContext *aContext,
nsSVGGeometryFrame *aSource,
float aGraphicOpacity,
void **aClosure)
float aGraphicOpacity)
{
*aClosure = nsnull;
if (aGraphicOpacity == 0.0f)
return PR_FALSE;

Просмотреть файл

@ -73,8 +73,7 @@ public:
// nsSVGPaintServerFrame methods:
virtual PRBool SetupPaintServer(gfxContext *aContext,
nsSVGGeometryFrame *aSource,
float aGraphicOpacity,
void **aClosure);
float aGraphicOpacity);
// nsISupports interface:
NS_IMETHOD QueryInterface(const nsIID& aIID, void** aInstancePtr);