Bug 764125; fixed crash test fail on gtk caused by null. r=Bas

This commit is contained in:
Anthony Jones 2012-07-24 22:18:38 +12:00
Родитель 9f057a5253
Коммит 48ad611564
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -687,6 +687,9 @@ gfxPlatform::CreateOffscreenDrawTarget(const IntSize& aSize, SurfaceFormat aForm
if (backend == BACKEND_CAIRO) {
nsRefPtr<gfxASurface> surf = CreateOffscreenSurface(ThebesIntSize(aSize),
ContentForFormat(aFormat));
if (!surf) {
return NULL;
}
return CreateDrawTargetForSurface(surf, aSize);
} else {