Bug 907011 - Use the window device context for font metrics when using Azure. r=Bas

This commit is contained in:
Matt Woodrow 2013-08-23 16:53:30 +12:00
parent 0b1137db16
commit 6cd20c1e43

View File

@ -60,7 +60,7 @@ struct DCFromContext {
DCFromContext(gfxContext *aContext) {
dc = nullptr;
nsRefPtr<gfxASurface> aSurface = aContext->CurrentSurface();
NS_ASSERTION(aSurface, "DCFromContext: null surface");
NS_ASSERTION(aSurface || !aContext->IsCairo(), "DCFromContext: null surface");
if (aSurface &&
(aSurface->GetType() == gfxASurface::SurfaceTypeWin32 ||
aSurface->GetType() == gfxASurface::SurfaceTypeWin32Printing))