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
Родитель f5694be27d
Коммит 95453f865d
1 изменённых файлов: 0 добавлений и 4 удалений

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

@ -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();