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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user