Commit 7ff231d7 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Use inner window directly from document node in htmlevent.c.

parent 27f799d8
......@@ -997,7 +997,7 @@ void fire_event(HTMLDocumentNode *doc, eventid_t eid, BOOL set_event, nsIDOMNode
TRACE("(%p) %s\n", doc, debugstr_w(event_info[eid].name));
window = doc->basedoc.window->base.inner_window;
window = doc->window;
prev_event = window->event;
if(set_event) {
hres = get_node(doc, target, TRUE, &node);
......@@ -1388,7 +1388,7 @@ void check_event_attr(HTMLDocumentNode *doc, nsIDOMElement *nselem)
TRACE("%p.%s = %s\n", nselem, debugstr_w(event_info[i].attr_name), debugstr_w(attr_value));
disp = script_parse_event(doc->basedoc.window->base.inner_window, attr_value);
disp = script_parse_event(doc->window, attr_value);
if(disp) {
hres = get_node(doc, (nsIDOMNode*)nselem, TRUE, &node);
if(SUCCEEDED(hres)) {
......
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