Bug 1436902 part 3. Replace usage of NS_IMPL_ISUPPORTS_INHERITED0 with NS_INLINE_DECL_REFCOUNTING_INHERITED when possible. r=mccr8

The change to RootAccessible.cpp fixes an obvious bug introduced in bug 741707.

The visibility changes in gfx/thebes are because NS_DECL_ISUPPORTS has a
trailing "public:" that those classes were relying on to have public
constructors.

MozReview-Commit-ID: IeB8KIJCGhU
This commit is contained in:
Boris Zbarsky
2018-02-12 15:44:40 -05:00
parent af56e4e28a
commit be90e72263
145 changed files with 159 additions and 311 deletions

View File

@@ -52,7 +52,7 @@ void EnqueueTask(already_AddRefed<nsIRunnable> aTask, int aDelayMs);
class AndroidUiThread : public nsThread
{
public:
NS_DECL_ISUPPORTS_INHERITED
NS_INLINE_DECL_REFCOUNTING_INHERITED(AndroidUiThread, nsThread)
AndroidUiThread()
: nsThread(MakeNotNull<ThreadEventQueue<mozilla::EventQueue>*>(
MakeUnique<mozilla::EventQueue>()),
@@ -68,8 +68,6 @@ private:
{}
};
NS_IMPL_ISUPPORTS_INHERITED0(AndroidUiThread, nsThread)
NS_IMETHODIMP
AndroidUiThread::Dispatch(already_AddRefed<nsIRunnable> aEvent, uint32_t aFlags)
{