Bug 1181028. Delete assertion to create equivalent draw targets during box shadow creation. r=mstange

This commit is contained in:
Mason Chang 2015-07-08 10:00:32 -07:00
parent 0d33e93440
commit c393f81364

View File

@ -439,12 +439,6 @@ CreateBoxShadow(DrawTarget& aDT, SourceSurface* aBlurMask, const gfxRGBA& aShado
return nullptr;
}
if (boxShadowDT->GetType() != aDT.GetType()) {
printf_stderr("Box shadow type: %d, dest draw target type: %d\n",
(int) boxShadowDT->GetType(), (int) aDT.GetType());
MOZ_ASSERT(false, "Box shadows are incorrect type\n");
}
ColorPattern shadowColor(ToDeviceColor(aShadowColor));
boxShadowDT->MaskSurface(shadowColor, aBlurMask, Point(0, 0));
return boxShadowDT->Snapshot();