Backed out changeset 3948ffacb5fb (bug 873455) for assertions on a CLOSED TREE

This commit is contained in:
Ed Morley 2013-05-21 12:40:13 +01:00
parent 81a342661a
commit 4449792cc3

View File

@ -1257,8 +1257,6 @@ RasterImage::InternalAddFrame(uint32_t framenum,
nsAutoPtr<imgFrame> frame(new imgFrame());
nsresult rv = frame->Init(aX, aY, aWidth, aHeight, aFormat, aPaletteDepth);
MOZ_ASSERT(mSize.width > 0 && mSize.height > 0, "Shouldn't call InternalAddFrame with zero size");
MOZ_ASSERT(NS_SUCCEEDED(rv), "imgFrame::Init should succeed");
NS_ENSURE_SUCCESS(rv, rv);
// We know we are in a decoder. Therefore, we must unlock the previous frame