mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 884061 - Part 3g: Use NS_DECL_THREADSAFE_ISUPPORTS in embedding/, r=bsmedberg
--HG-- extra : rebase_source : 945c7378a49ec5ffb235925cfc7986ba9d6061bc
This commit is contained in:
parent
fb0ab49c35
commit
f9802e9766
@ -994,7 +994,7 @@ class DefaultTooltipTextProvider MOZ_FINAL : public nsITooltipTextProvider
|
||||
public:
|
||||
DefaultTooltipTextProvider();
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSITOOLTIPTEXTPROVIDER
|
||||
|
||||
protected:
|
||||
@ -1003,7 +1003,7 @@ protected:
|
||||
nsCOMPtr<nsIAtom> mTag_window;
|
||||
};
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(DefaultTooltipTextProvider, nsITooltipTextProvider)
|
||||
NS_IMPL_ISUPPORTS1(DefaultTooltipTextProvider, nsITooltipTextProvider)
|
||||
|
||||
DefaultTooltipTextProvider::DefaultTooltipTextProvider()
|
||||
{
|
||||
|
@ -11,8 +11,8 @@
|
||||
#include "nsISupportsPrimitives.h"
|
||||
#include "nsIComponentManager.h"
|
||||
|
||||
NS_IMPL_THREADSAFE_ADDREF(nsPrintProgress)
|
||||
NS_IMPL_THREADSAFE_RELEASE(nsPrintProgress)
|
||||
NS_IMPL_ADDREF(nsPrintProgress)
|
||||
NS_IMPL_RELEASE(nsPrintProgress)
|
||||
|
||||
NS_INTERFACE_MAP_BEGIN(nsPrintProgress)
|
||||
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIPrintStatusFeedback)
|
||||
|
@ -18,7 +18,7 @@
|
||||
class nsPrintProgress : public nsIPrintProgress, public nsIPrintStatusFeedback
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSIPRINTPROGRESS
|
||||
NS_DECL_NSIWEBPROGRESSLISTENER
|
||||
NS_DECL_NSIPRINTSTATUSFEEDBACK
|
||||
|
@ -11,8 +11,8 @@
|
||||
#include "nsISupportsPrimitives.h"
|
||||
#include "nsIComponentManager.h"
|
||||
|
||||
NS_IMPL_THREADSAFE_ADDREF(nsPrintProgress)
|
||||
NS_IMPL_THREADSAFE_RELEASE(nsPrintProgress)
|
||||
NS_IMPL_ADDREF(nsPrintProgress)
|
||||
NS_IMPL_RELEASE(nsPrintProgress)
|
||||
|
||||
NS_INTERFACE_MAP_BEGIN(nsPrintProgress)
|
||||
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIPrintStatusFeedback)
|
||||
|
@ -18,7 +18,7 @@
|
||||
class nsPrintProgress : public nsIPrintProgress, public nsIPrintStatusFeedback
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSIPRINTPROGRESS
|
||||
NS_DECL_NSIWEBPROGRESSLISTENER
|
||||
NS_DECL_NSIPRINTSTATUSFEEDBACK
|
||||
|
@ -11,8 +11,8 @@
|
||||
#include "nsISupportsPrimitives.h"
|
||||
#include "nsIComponentManager.h"
|
||||
|
||||
NS_IMPL_THREADSAFE_ADDREF(nsPrintProgress)
|
||||
NS_IMPL_THREADSAFE_RELEASE(nsPrintProgress)
|
||||
NS_IMPL_ADDREF(nsPrintProgress)
|
||||
NS_IMPL_RELEASE(nsPrintProgress)
|
||||
|
||||
NS_INTERFACE_MAP_BEGIN(nsPrintProgress)
|
||||
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIPrintStatusFeedback)
|
||||
|
@ -19,7 +19,7 @@
|
||||
class nsPrintProgress : public nsIPrintProgress, public nsIPrintStatusFeedback
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSIPRINTPROGRESS
|
||||
NS_DECL_NSIWEBPROGRESSLISTENER
|
||||
NS_DECL_NSIPRINTSTATUSFEEDBACK
|
||||
|
@ -14,14 +14,14 @@
|
||||
#include "nsAtomicRefcnt.h"
|
||||
|
||||
#if 0
|
||||
NS_IMPL_THREADSAFE_ADDREF(nsPrintProgress)
|
||||
NS_IMPL_THREADSAFE_RELEASE(nsPrintProgress)
|
||||
NS_IMPL_ADDREF(nsPrintProgress)
|
||||
NS_IMPL_RELEASE(nsPrintProgress)
|
||||
#else
|
||||
NS_IMETHODIMP_(nsrefcnt) nsPrintProgress::AddRef(void)
|
||||
{
|
||||
NS_PRECONDITION(int32_t(mRefCnt) >= 0, "illegal refcnt");
|
||||
nsrefcnt count;
|
||||
count = NS_AtomicIncrementRefcnt(mRefCnt);
|
||||
count = ++mRefCnt;
|
||||
//NS_LOG_ADDREF(this, count, "nsPrintProgress", sizeof(*this));
|
||||
return count;
|
||||
}
|
||||
@ -30,7 +30,7 @@ NS_IMETHODIMP_(nsrefcnt) nsPrintProgress::Release(void)
|
||||
{
|
||||
nsrefcnt count;
|
||||
NS_PRECONDITION(0 != mRefCnt, "dup release");
|
||||
count = NS_AtomicDecrementRefcnt(mRefCnt);
|
||||
count = --mRefCnt;
|
||||
//NS_LOG_RELEASE(this, count, "nsPrintProgress");
|
||||
if (0 == count) {
|
||||
mRefCnt = 1; /* stabilize */
|
||||
|
@ -19,7 +19,7 @@
|
||||
class nsPrintProgress : public nsIPrintProgress, public nsIPrintStatusFeedback
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSIPRINTPROGRESS
|
||||
NS_DECL_NSIWEBPROGRESSLISTENER
|
||||
NS_DECL_NSIPRINTSTATUSFEEDBACK
|
||||
|
Loading…
Reference in New Issue
Block a user