Bug 822143. Remove unused pattern from CreateSamplingRestrictedDrawable. r=mstange

Seems this got left behind when converting to gfxDrawable in bug 572680.

--HG--
extra : rebase_source : 48fcd3ec1307539b2d587a44e245359fabcd9de5
This commit is contained in:
Jeff Muizelaar 2012-12-17 15:08:40 -05:00
parent f5523fcce2
commit ed3cb85b8c

View File

@ -261,10 +261,6 @@ CreateSamplingRestrictedDrawable(gfxDrawable* aDrawable,
aDrawable->Draw(tmpCtx, needed - needed.TopLeft(), true,
gfxPattern::FILTER_FAST, gfxMatrix().Translate(needed.TopLeft()));
nsRefPtr<gfxPattern> resultPattern = new gfxPattern(temp);
if (!resultPattern)
return nullptr;
nsRefPtr<gfxDrawable> drawable =
new gfxSurfaceDrawable(temp, size, gfxMatrix().Translate(-needed.TopLeft()));
return drawable.forget();