Bug 944386 - Remove some dead cairo fallback code in nsSVGFilterInstance. r=jwatt

This commit is contained in:
Markus Stange 2013-11-28 15:39:13 +01:00
parent d0ceef6534
commit cfa84a4da9

View File

@ -480,14 +480,8 @@ nsSVGFilterInstance::Render(gfxContext* aContext)
mInputImages);
RefPtr<SourceSurface> resultImageSource;
if (!aContext->IsCairo()) {
if (resultImage) {
RefPtr<DrawTarget> dt = aContext->GetDrawTarget();
resultImageSource =
gfxPlatform::GetPlatform()->GetSourceSurfaceForSurface(dt, resultImage);
} else {
resultImageSource = resultImageDT->Snapshot();
}
if (!resultImage) {
resultImageSource = resultImageDT->Snapshot();
}
gfxMatrix ctm = GetFilterSpaceToDeviceSpaceTransform();