Bug 806428 - Do not abort when a ThebesLayer's size changes when previous size was (0,0). r=BenWa

This commit is contained in:
Nicolas Silva 2012-11-15 07:23:13 +01:00
parent 51dd83878a
commit b196ace209

View File

@ -48,7 +48,7 @@ public:
#ifdef DEBUG
gfxIntSize prevSize = gfxIntSize(BufferRect().width, BufferRect().height);
gfxIntSize newSize = aBuffer->GetSize();
NS_ABORT_IF_FALSE(newSize == prevSize,
NS_ABORT_IF_FALSE(newSize == prevSize || prevSize == gfxIntSize(0,0),
"Swapped-in buffer size doesn't match old buffer's!");
#endif
nsRefPtr<gfxASurface> oldBuffer;