Commit 54a746f1 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Store Gecko element both as nsIDOMElement and nsIDOMHTMLElement in HTMLElement.

parent 354fa7eb
......@@ -5463,7 +5463,9 @@ void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElemen
/* No AddRef, share reference with HTMLDOMNode */
assert((nsIDOMNode*)nselem == This->node.nsnode);
This->nselem = nselem;
This->dom_element = (nsIDOMElement*)nselem;
This->html_element = nselem;
This->nselem = This->html_element;
}
ConnectionPointContainer_Init(&This->cp_container, (IUnknown*)&This->IHTMLElement_iface, This->node.vtbl->cpc_entries);
......
......@@ -780,6 +780,8 @@ typedef struct {
IProvideMultipleClassInfo IProvideMultipleClassInfo_iface;
nsIDOMHTMLElement *nselem;
nsIDOMElement *dom_element;
nsIDOMHTMLElement *html_element;
HTMLStyle *style;
HTMLStyle *runtime_style;
HTMLAttributeCollection *attrs;
......
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