mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Backed out changeset bd58bce52916 (bug 1231643) for test failures in mask-composite-2a.html
This commit is contained in:
parent
ce73bfd888
commit
f045c7e5ec
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user