mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 907011 - Use the window device context for font metrics when using Azure. r=Bas
This commit is contained in:
parent
0b1137db16
commit
6cd20c1e43
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user