Bug 1348430 - Part 2. Rename a local variable in nsSVGPatternFrame::PaintPattern. r=mstange

MozReview-Commit-ID: FIWQOHsC5o5

--HG--
extra : rebase_source : f1c3d0f3c81073ca5c57f6bd4482a061a56fc7a3
This commit is contained in:
cku 2017-03-21 23:40:36 +08:00
Родитель 21d49e1368
Коммит fca3b40aa9
1 изменённых файлов: 7 добавлений и 7 удалений

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

@ -379,12 +379,12 @@ nsSVGPatternFrame::PaintPattern(const DrawTarget* aDrawTarget,
}
dt->ClearRect(Rect(0, 0, surfaceSize.width, surfaceSize.height));
RefPtr<gfxContext> gfx = gfxContext::CreateOrNull(dt);
MOZ_ASSERT(gfx); // already checked the draw target above
RefPtr<gfxContext> ctx = gfxContext::CreateOrNull(dt);
MOZ_ASSERT(ctx); // already checked the draw target above
if (aGraphicOpacity != 1.0f) {
gfx->Save();
gfx->PushGroupForBlendBack(gfxContentType::COLOR_ALPHA, aGraphicOpacity);
ctx->Save();
ctx->PushGroupForBlendBack(gfxContentType::COLOR_ALPHA, aGraphicOpacity);
}
// OK, now render -- note that we use "firstKid", which
@ -412,7 +412,7 @@ nsSVGPatternFrame::PaintPattern(const DrawTarget* aDrawTarget,
tm = static_cast<nsSVGElement*>(kid->GetContent())->
PrependLocalTransformsTo(tm, eUserSpaceToParent);
}
DrawResult result = nsSVGUtils::PaintFrameWithEffects(kid, *gfx, tm);
DrawResult result = nsSVGUtils::PaintFrameWithEffects(kid, *ctx, tm);
if (result != DrawResult::SUCCESS) {
return nullptr;
}
@ -423,8 +423,8 @@ nsSVGPatternFrame::PaintPattern(const DrawTarget* aDrawTarget,
patternWithChildren->mSource = nullptr;
if (aGraphicOpacity != 1.0f) {
gfx->PopGroupAndBlend();
gfx->Restore();
ctx->PopGroupAndBlend();
ctx->Restore();
}
// caller now owns the surface