зеркало из https://github.com/mozilla/gecko-dev.git
Bug 698399 - Use nsScriptObjectHolder::getObject in some more places; r=mounir
This commit is contained in:
Родитель
08d4625233
Коммит
9d5ce4e0cc
|
@ -702,9 +702,7 @@ nsEventListenerManager::CompileEventHandlerInternal(nsListenerStruct *aListenerS
|
|||
nsScriptObjectHolder boundHandler(context);
|
||||
context->BindCompiledEventHandler(mTarget, listener->GetEventScope(),
|
||||
handler.getObject(), boundHandler);
|
||||
listener->SetHandler(
|
||||
static_cast<JSObject*>(
|
||||
static_cast<void*>(boundHandler)));
|
||||
listener->SetHandler(boundHandler.getObject());
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
|
@ -330,8 +330,7 @@ nsXBLPrototypeHandler::ExecuteHandler(nsIDOMEventTarget* aTarget,
|
|||
nsCOMPtr<nsIDOMEventListener> eventListener;
|
||||
rv = NS_NewJSEventListener(boundContext, scope,
|
||||
scriptTarget, onEventAtom,
|
||||
static_cast<JSObject*>(
|
||||
static_cast<void*>(boundHandler)),
|
||||
boundHandler.getObject(),
|
||||
getter_AddRefs(eventListener));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче