Commit 522d0bf9 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Use node event_target for HTMLDocument.

parent 7eca0bca
......@@ -1741,9 +1741,6 @@ static void destroy_htmldoc(HTMLDocument *This)
{
remove_doc_tasks(This);
if(This->event_target)
release_event_target(This->event_target);
ConnectionPointContainer_Destroy(&This->cp_container);
if(This->nsdoc)
......
......@@ -795,7 +795,8 @@ void fire_event(HTMLDocumentNode *doc, eventid_t eid, nsIDOMNode *target, nsIDOM
}
}
call_event_handlers(doc, event_obj, doc->basedoc.event_target, eid, (IDispatch*)HTMLDOC(&doc->basedoc));
call_event_handlers(doc, event_obj, doc->basedoc.doc_node->node.event_target, eid,
(IDispatch*)HTMLDOC(&doc->basedoc));
break;
default:
......
......@@ -63,12 +63,12 @@ static inline HRESULT get_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *
static inline HRESULT set_doc_event(HTMLDocument *doc, eventid_t eid, VARIANT *var)
{
return set_event_handler(&doc->event_target, doc, eid, var);
return set_node_event(&doc->doc_node->node, eid, var);
}
static inline HRESULT get_doc_event(HTMLDocument *doc, eventid_t eid, VARIANT *var)
{
return get_event_handler(&doc->event_target, eid, var);
return get_node_event(&doc->doc_node->node, eid, var);
}
static inline HRESULT set_window_event(HTMLWindow *window, eventid_t eid, VARIANT *var)
......
......@@ -278,7 +278,6 @@ struct HTMLDocument {
HTMLWindow *window;
nsIDOMHTMLDocument *nsdoc;
event_target_t *event_target;
ConnectionPointContainer cp_container;
ConnectionPoint cp_htmldocevents;
ConnectionPoint cp_htmldocevents2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment