зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1181028. Delete assertion to create equivalent draw targets during box shadow creation. r=mstange
This commit is contained in:
Родитель
0d33e93440
Коммит
c393f81364
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче