mshtml: Store HTMLElement pointer in HTMLTextContainer.
This commit is contained in:
parent
c6e513dc72
commit
82676b999d
|
@ -441,7 +441,7 @@ void HTMLBodyElement_Create(HTMLElement *element)
|
|||
ret->lpHTMLBodyElementVtbl = &HTMLBodyElementVtbl;
|
||||
ret->element = element;
|
||||
|
||||
HTMLTextContainer_Init(&ret->text_container, (IUnknown*)HTMLBODY(ret));
|
||||
HTMLTextContainer_Init(&ret->text_container, element);
|
||||
|
||||
nsres = nsIDOMHTMLElement_QueryInterface(element->nselem, &IID_nsIDOMHTMLBodyElement,
|
||||
(void**)&ret->nsbody);
|
||||
|
|
|
@ -40,19 +40,19 @@ static HRESULT WINAPI HTMLTextContainer_QueryInterface(IHTMLTextContainer *iface
|
|||
REFIID riid, void **ppv)
|
||||
{
|
||||
HTMLTextContainer *This = HTMLTEXTCONT_THIS(iface);
|
||||
return IUnknown_QueryInterface(This->impl, riid, ppv);
|
||||
return IHTMLElement_QueryInterface(HTMLELEM(This->element), riid, ppv);
|
||||
}
|
||||
|
||||
static ULONG WINAPI HTMLTextContainer_AddRef(IHTMLTextContainer *iface)
|
||||
{
|
||||
HTMLTextContainer *This = HTMLTEXTCONT_THIS(iface);
|
||||
return IUnknown_AddRef(This->impl);
|
||||
return IHTMLElement_AddRef(HTMLELEM(This->element));
|
||||
}
|
||||
|
||||
static ULONG WINAPI HTMLTextContainer_Release(IHTMLTextContainer *iface)
|
||||
{
|
||||
HTMLTextContainer *This = HTMLTEXTCONT_THIS(iface);
|
||||
return IUnknown_Release(This->impl);
|
||||
return IHTMLElement_Release(HTMLELEM(This->element));
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTextContainer_GetTypeInfoCount(IHTMLTextContainer *iface, UINT *pctinfo)
|
||||
|
@ -175,8 +175,8 @@ static const IHTMLTextContainerVtbl HTMLTextContainerVtbl = {
|
|||
HTMLTextContainer_get_onscroll
|
||||
};
|
||||
|
||||
void HTMLTextContainer_Init(HTMLTextContainer *This, IUnknown *impl)
|
||||
void HTMLTextContainer_Init(HTMLTextContainer *This, HTMLElement *elem)
|
||||
{
|
||||
This->lpHTMLTextContainerVtbl = &HTMLTextContainerVtbl;
|
||||
This->impl = impl;
|
||||
This->element = elem;
|
||||
}
|
||||
|
|
|
@ -204,7 +204,7 @@ typedef struct {
|
|||
typedef struct {
|
||||
const IHTMLTextContainerVtbl *lpHTMLTextContainerVtbl;
|
||||
|
||||
IUnknown *impl;
|
||||
HTMLElement *element;
|
||||
} HTMLTextContainer;
|
||||
|
||||
#define HTMLDOC(x) ((IHTMLDocument2*) &(x)->lpHTMLDocument2Vtbl)
|
||||
|
@ -316,7 +316,7 @@ void HTMLTextAreaElement_Create(HTMLElement*);
|
|||
|
||||
void HTMLElement2_Init(HTMLElement*);
|
||||
|
||||
void HTMLTextContainer_Init(HTMLTextContainer*,IUnknown*);
|
||||
void HTMLTextContainer_Init(HTMLTextContainer*,HTMLElement*);
|
||||
|
||||
HRESULT HTMLDOMNode_QI(HTMLDOMNode*,REFIID,void**);
|
||||
HRESULT HTMLElement_QI(HTMLElement*,REFIID,void**);
|
||||
|
|
Loading…
Reference in New Issue