Don't use the surface if there was an error creating it. b=441995 r+sr=roc a=ss

git-svn-id: svn://10.0.0.236/trunk@253348 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mats.palmgren%bredband.net
2008-07-31 01:46:37 +00:00
parent cdafef2114
commit a717a2e41b

View File

@@ -1722,6 +1722,9 @@ nsWindow::OnExposeEvent(GtkWidget *aWidget, GdkEventExpose *aEvent)
bufferPixmapSurface =
new gfxXlibSurface(display, drawable, XVisual,
gfxIntSize(boundsRect.width, boundsRect.height));
if (bufferPixmapSurface && bufferPixmapSurface->CairoStatus()) {
bufferPixmapSurface = nsnull;
}
if (bufferPixmapSurface) {
bufferPixmapSurface->SetDeviceOffset(gfxPoint(-boundsRect.x, -boundsRect.y));
nsCOMPtr<nsIRenderingContext> newRC;