bug 606419 - always return the dwrite factory once one has been created. r=bas a=blocking2.0
authorJonathan Kew <jfkthame@gmail.com>
Thu, 02 Dec 2010 10:37:17 +0000
changeset 58461 f257e2a6cdcfdc97d81f87637492ae8057967d34
parent 58460 8cec27abeda29ec99a1f447e03181133d14d03fe
child 58462 1429940f0fd25e75734cfda1fb407f927a49a156
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersbas, blocking2
bugs606419
milestone2.0b8pre
bug 606419 - always return the dwrite factory once one has been created. r=bas a=blocking2.0
gfx/thebes/gfxWindowsPlatform.h
--- a/gfx/thebes/gfxWindowsPlatform.h
+++ b/gfx/thebes/gfxWindowsPlatform.h
@@ -225,17 +225,17 @@ public:
         kWindows7 = 0x60001
     };
 
     static PRInt32 WindowsOSVersion();
 
     virtual void FontsPrefsChanged(nsIPrefBranch *aPrefBranch, const char *aPref);
 
 #ifdef CAIRO_HAS_DWRITE_FONT
-    IDWriteFactory *GetDWriteFactory() { return mUseDirectWrite ? mDWriteFactory : nsnull; }
+    IDWriteFactory *GetDWriteFactory() { return mDWriteFactory; }
     inline PRBool DWriteEnabled() { return mUseDirectWrite; }
 #else
     inline PRBool DWriteEnabled() { return PR_FALSE; }
 #endif
 #ifdef CAIRO_HAS_D2D_SURFACE
     cairo_device_t *GetD2DDevice() { return mD2DDevice; }
     ID3D10Device1 *GetD3D10Device() { return mD2DDevice ? cairo_d2d_device_get_device(mD2DDevice) : nsnull; }
 #endif