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

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2018-02-12 01:27:32 +01:00 committed by Alexandre Julliard
parent 354fa7eb79
commit 54a746f155
2 changed files with 5 additions and 1 deletions

View File

@ -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);

View File

@ -780,6 +780,8 @@ typedef struct {
IProvideMultipleClassInfo IProvideMultipleClassInfo_iface;
nsIDOMHTMLElement *nselem;
nsIDOMElement *dom_element;
nsIDOMHTMLElement *html_element;
HTMLStyle *style;
HTMLStyle *runtime_style;
HTMLAttributeCollection *attrs;