Backed out changeset bd58bce52916 (bug 1231643) for test failures in mask-composite-2a.html

This commit is contained in:
Carsten "Tomcat" Book 2016-04-13 08:56:29 +02:00
parent ce73bfd888
commit f045c7e5ec

View File

@ -567,17 +567,7 @@ nsSVGIntegrationUtils::PaintFramesWithEffects(gfxContext& aContext,
clipRect = aContext.GetClipExtents();
}
IntRect drawRect = RoundedOut(ToRect(clipRect));
// Mask composition result on CoreGraphic::A8 surface is not correct
// when mask-mode is not add(source over). Switch to skia when CG backend
// detected.
RefPtr<DrawTarget> targetDT =
(aContext.GetDrawTarget()->GetBackendType() == BackendType::COREGRAPHICS) ?
Factory::CreateDrawTarget(BackendType::SKIA, drawRect.Size(),
SurfaceFormat::A8) :
aContext.GetDrawTarget()->CreateSimilarDrawTarget(drawRect.Size(),
SurfaceFormat::A8);
RefPtr<DrawTarget> targetDT = aContext.GetDrawTarget()->CreateSimilarDrawTarget(drawRect.Size(), SurfaceFormat::A8);
if (!targetDT || !targetDT->IsValid()) {
aContext.Restore();
return;