зеркало из https://github.com/mozilla/pjs.git
Bug 630465. Don't pretend everything is ok when allocating image surfaces failes. r=vlad, a=joe
This commit is contained in:
Родитель
5d7924956f
Коммит
0d2e3a9755
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче