зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1117162. Give DOMEventTargetHelper a constructor taking nsIGlobalObject. r=smaug
This commit is contained in:
Родитель
cf01ffcedf
Коммит
d701d92006
|
@ -43,6 +43,13 @@ public:
|
|||
{
|
||||
BindToOwner(aWindow);
|
||||
}
|
||||
explicit DOMEventTargetHelper(nsIGlobalObject* aGlobalObject)
|
||||
: mParentObject(nullptr)
|
||||
, mOwnerWindow(nullptr)
|
||||
, mHasOrHasHadOwnerWindow(false)
|
||||
{
|
||||
BindToOwner(aGlobalObject);
|
||||
}
|
||||
explicit DOMEventTargetHelper(DOMEventTargetHelper* aOther)
|
||||
: mParentObject(nullptr)
|
||||
, mOwnerWindow(nullptr)
|
||||
|
|
|
@ -29,7 +29,7 @@ NS_INTERFACE_MAP_BEGIN(WorkerDataStore)
|
|||
NS_INTERFACE_MAP_END_INHERITING(DOMEventTargetHelper)
|
||||
|
||||
WorkerDataStore::WorkerDataStore(WorkerGlobalScope* aScope)
|
||||
: DOMEventTargetHelper(aScope)
|
||||
: DOMEventTargetHelper(static_cast<DOMEventTargetHelper*>(aScope))
|
||||
{}
|
||||
|
||||
already_AddRefed<WorkerDataStore>
|
||||
|
|
Загрузка…
Ссылка в новой задаче