зеркало из https://github.com/mozilla/gecko-dev.git
Bug 691217 - nsWindow::OnPaint() returns NS_ERROR_FAILURE even if return type is bool. r=jimm
This commit is contained in:
Родитель
15f8fcde2c
Коммит
cc3bc0653a
|
@ -381,7 +381,7 @@ bool nsWindow::OnPaint(HDC aDC, PRUint32 aNestingLevel)
|
|||
|
||||
if (!EnsureSharedSurfaceSize(surfaceSize)) {
|
||||
NS_ERROR("Couldn't allocate a shared image surface!");
|
||||
return NS_ERROR_FAILURE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// don't use the shared surface directly; instead, create a new one
|
||||
|
@ -399,7 +399,7 @@ bool nsWindow::OnPaint(HDC aDC, PRUint32 aNestingLevel)
|
|||
|
||||
if (!targetSurface) {
|
||||
NS_ERROR("Invalid RenderMode!");
|
||||
return NS_ERROR_FAILURE;
|
||||
return false;
|
||||
}
|
||||
|
||||
nsRefPtr<gfxContext> thebesContext = new gfxContext(targetSurface);
|
||||
|
|
Загрузка…
Ссылка в новой задаче