Bug 1502252 - Use thread-safe refcounting for nsFontCache. r=emilio
authorJonathan Kew <jkew@mozilla.com>
Mon, 29 Oct 2018 16:54:47 +0000
changeset 499823 af5a791e7b7e7fc42646f202db59cfbf4c48cd6e
parent 499822 9fe7380322a2bad3b6d67bb398a17efa9dd5819f
child 499824 c66693babf02eeb68c90e93617f9a692ab813a89
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1502252
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1502252 - Use thread-safe refcounting for nsFontCache. r=emilio
gfx/src/nsDeviceContext.cpp
--- a/gfx/src/nsDeviceContext.cpp
+++ b/gfx/src/nsDeviceContext.cpp
@@ -44,17 +44,17 @@ using namespace mozilla::gfx;
 using mozilla::services::GetObserverService;
 using mozilla::widget::ScreenManager;
 
 class nsFontCache final : public nsIObserver
 {
 public:
     nsFontCache(): mContext(nullptr) {}
 
-    NS_DECL_ISUPPORTS
+    NS_DECL_THREADSAFE_ISUPPORTS
     NS_DECL_NSIOBSERVER
 
     void Init(nsDeviceContext* aContext);
     void Destroy();
 
     already_AddRefed<nsFontMetrics> GetMetricsFor(
         const nsFont& aFont, const nsFontMetrics::Params& aParams);