bug 606419 - always return the dwrite factory once one has been created. r=bas a=blocking2.0

This commit is contained in:
Jonathan Kew 2010-12-02 10:37:17 +00:00
parent 1149bf2169
commit 4d10021c8c

View File

@ -230,7 +230,7 @@ public:
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; }