Commit 0666c6c2 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Pass Gecko element as nsIDOMElement to check_event_attr.

parent 0f1cb96b
......@@ -2781,7 +2781,7 @@ void update_doc_cp_events(HTMLDocumentNode *doc, cp_static_data_t *cp)
}
}
void check_event_attr(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem)
void check_event_attr(HTMLDocumentNode *doc, nsIDOMElement *nselem)
{
nsIDOMMozNamedAttrMap *attr_map;
const PRUnichar *name, *value;
......@@ -2795,11 +2795,11 @@ void check_event_attr(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem)
nsresult nsres;
HRESULT hres;
nsres = nsIDOMHTMLElement_HasAttributes(nselem, &has_attrs);
nsres = nsIDOMElement_HasAttributes(nselem, &has_attrs);
if(NS_FAILED(nsres) || !has_attrs)
return;
nsres = nsIDOMHTMLElement_GetAttributes(nselem, &attr_map);
nsres = nsIDOMElement_GetAttributes(nselem, &attr_map);
if(NS_FAILED(nsres))
return;
......
......@@ -85,7 +85,7 @@ typedef struct {
BOOL no_event_obj;
} DOMEvent;
void check_event_attr(HTMLDocumentNode*,nsIDOMHTMLElement*) DECLSPEC_HIDDEN;
void check_event_attr(HTMLDocumentNode*,nsIDOMElement*) DECLSPEC_HIDDEN;
void release_event_target(EventTarget*) DECLSPEC_HIDDEN;
HRESULT set_event_handler(EventTarget*,eventid_t,VARIANT*) DECLSPEC_HIDDEN;
HRESULT get_event_handler(EventTarget*,eventid_t,VARIANT*) DECLSPEC_HIDDEN;
......
......@@ -742,7 +742,7 @@ static void NSAPI nsDocumentObserver_BindToDocument(nsIDocumentObserver *iface,
nsIDOMHTMLFrameElement *nsframe;
nsIDOMHTMLScriptElement *nsscript;
nsIDOMHTMLMetaElement *nsmeta;
nsIDOMHTMLElement *nselem;
nsIDOMElement *nselem;
nsIDOMComment *nscomment;
nsresult nsres;
......@@ -768,12 +768,12 @@ static void NSAPI nsDocumentObserver_BindToDocument(nsIDocumentObserver *iface,
}
}
nsres = nsIContent_QueryInterface(aContent, &IID_nsIDOMHTMLElement, (void**)&nselem);
nsres = nsIContent_QueryInterface(aContent, &IID_nsIDOMElement, (void**)&nselem);
if(NS_FAILED(nsres))
return;
check_event_attr(This, nselem);
nsIDOMHTMLElement_Release(nselem);
nsIDOMElement_Release(nselem);
nsres = nsIContent_QueryInterface(aContent, &IID_nsIDOMHTMLIFrameElement, (void**)&nsiframe);
if(NS_SUCCEEDED(nsres)) {
......
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