Bug 630465. Don't pretend everything is ok when allocating image surfaces failes. r=vlad, a=joe

This commit is contained in:
Boris Zbarsky 2011-02-08 16:30:54 -05:00
parent 24b712775f
commit 9fe041c03d

View File

@ -1164,7 +1164,7 @@ nsCanvasRenderingContext2D::InitializeWithSurface(nsIDocShell *docShell, gfxASur
// then the surface became cleared, and we need to redraw everything.
Redraw();
return NS_OK;
return mValid ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
}
NS_IMETHODIMP