Bug 1356103 - Part 6: Make gfxUserFontSet refcounting thread-safe. r=bholley
As with a few other gfx* font-related classes, during font metrics
calculations we end up taking strong references to gfxUserFontSet,
and it would be difficult to restructure the code to not do this.
MozReview-Commit-ID: L1GbZnf4825
--- a/gfx/thebes/gfxUserFontSet.h
+++ b/gfx/thebes/gfxUserFontSet.h
@@ -170,17 +170,17 @@ class gfxUserFontEntry;
class gfxOTSContext;
class gfxUserFontSet {
friend class gfxUserFontEntry;
friend class gfxOTSContext;
public:
- NS_INLINE_DECL_REFCOUNTING(gfxUserFontSet)
+ NS_INLINE_DECL_THREADSAFE_REFCOUNTING(gfxUserFontSet)
gfxUserFontSet();
enum {
// no flags ==> no hint set
// unknown ==> unknown format hint set
FLAG_FORMAT_UNKNOWN = 1,
FLAG_FORMAT_OPENTYPE = 1 << 1,