mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1166488 - Eliminate ServiceWorkerRegistrationBase::mCCDummy. r=smaug
This commit is contained in:
parent
b63ced61a3
commit
e32a66ebb3
@ -53,9 +53,6 @@ NS_IMPL_RELEASE_INHERITED(ServiceWorkerRegistrationBase, DOMEventTargetHelper)
|
||||
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(ServiceWorkerRegistrationBase)
|
||||
NS_INTERFACE_MAP_END_INHERITING(DOMEventTargetHelper)
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_INHERITED(ServiceWorkerRegistrationBase,
|
||||
DOMEventTargetHelper, mCCDummy);
|
||||
|
||||
ServiceWorkerRegistrationBase::ServiceWorkerRegistrationBase(nsPIDOMWindow* aWindow,
|
||||
const nsAString& aScope)
|
||||
: DOMEventTargetHelper(aWindow)
|
||||
|
@ -66,8 +66,6 @@ class ServiceWorkerRegistrationBase : public DOMEventTargetHelper
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(ServiceWorkerRegistrationBase,
|
||||
DOMEventTargetHelper)
|
||||
|
||||
IMPL_EVENT_HANDLER(updatefound)
|
||||
|
||||
@ -91,8 +89,6 @@ protected:
|
||||
{ }
|
||||
|
||||
const nsString mScope;
|
||||
private:
|
||||
nsCOMPtr<nsISupports> mCCDummy;
|
||||
};
|
||||
|
||||
class ServiceWorkerRegistrationMainThread final : public ServiceWorkerRegistrationBase,
|
||||
@ -120,10 +116,10 @@ public:
|
||||
|
||||
already_AddRefed<workers::ServiceWorker>
|
||||
GetWaiting() override;
|
||||
|
||||
|
||||
already_AddRefed<workers::ServiceWorker>
|
||||
GetActive() override;
|
||||
|
||||
|
||||
already_AddRefed<PushManager>
|
||||
GetPushManager(ErrorResult& aRv);
|
||||
|
||||
|
@ -825,6 +825,10 @@ static NS_CYCLE_COLLECTION_INNERCLASS NS_CYCLE_COLLECTION_INNERNAME;
|
||||
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(__VA_ARGS__) \
|
||||
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
|
||||
|
||||
// If you are looking for NS_IMPL_CYCLE_COLLECTION_INHERITED_0(_class, _base)
|
||||
// you should instead not declare any cycle collected stuff in _class, so it
|
||||
// will just inherit the CC declarations from _base.
|
||||
|
||||
#define NS_IMPL_CYCLE_COLLECTION_INHERITED(_class, _base, ...) \
|
||||
NS_IMPL_CYCLE_COLLECTION_CLASS(_class) \
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(_class, _base) \
|
||||
|
Loading…
Reference in New Issue
Block a user