Bug 668344: Deal with missing Direct2D device in Azure. r=jrmuizel

This commit is contained in:
Bas Schouten
2012-02-07 06:14:21 +01:00
parent 40491e71d7
commit e9309a6dcd
3 changed files with 15 additions and 0 deletions

View File

@@ -1202,6 +1202,11 @@ BasicCanvasLayer::PaintWithOpacity(gfxContext* aContext,
NS_ASSERTION(BasicManager()->InDrawing(),
"Can only draw in drawing phase");
if (!mSurface) {
NS_WARNING("No valid surface to draw!");
return;
}
nsRefPtr<gfxPattern> pat = new gfxPattern(mSurface);
pat->SetFilter(mFilter);