Bug 1502252 - Use thread-safe refcounting for nsFontCache. r=emilio, a=RyanVM
authorJonathan Kew <jkew@mozilla.com>
Mon, 29 Oct 2018 16:54:47 +0000
changeset 500927 c5c1526daf281e50a924bba862a760a9aea363f0
parent 500926 ec670e047c06c8822f746d59c7f2ef70748393eb
child 500928 dd2b79631e52ceea81d5b2e46b36901948608e53
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio, RyanVM
bugs1502252
milestone64.0
Bug 1502252 - Use thread-safe refcounting for nsFontCache. r=emilio, a=RyanVM
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);