Bug 1181028. Log assert error. r=me

This commit is contained in:
Mason Chang 2015-07-07 15:41:29 -07:00
parent eaff6ab6a1
commit 1e4a4d3d88

View File

@ -439,7 +439,11 @@ CreateBoxShadow(DrawTarget& aDT, SourceSurface* aBlurMask, const gfxRGBA& aShado
return nullptr;
}
MOZ_ASSERT(boxShadowDT->GetType() == aDT.GetType());
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));