Commit 982dce48 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added IConnectionPointContainer implementation to HTMLBodyElement.

parent 88f4fb1f
......@@ -40,6 +40,8 @@ typedef struct {
HTMLTextContainer text_container;
ConnectionPointContainer cp_container;
HTMLElement *element;
nsIDOMHTMLBodyElement *nsbody;
} HTMLBodyElement;
......@@ -68,6 +70,9 @@ static HRESULT WINAPI HTMLBodyElement_QueryInterface(IHTMLBodyElement *iface,
}else if(IsEqualGUID(&IID_IHTMLTextContainer, riid)) {
TRACE("(%p)->(IID_IHTMLTextContainer %p)\n", This, ppv);
*ppv = HTMLTEXTCONT(&This->text_container);
}else if(IsEqualGUID(&IID_IConnectionPointContainer, riid)) {
TRACE("(%p)->(IID_IConnectionPointContainer %p)\n", This, ppv);
*ppv = CONPTCONT(&This->cp_container);
}
if(*ppv) {
......@@ -428,6 +433,7 @@ static void HTMLBodyElement_destructor(IUnknown *iface)
{
HTMLBodyElement *This = HTMLBODY_THIS(iface);
ConnectionPointContainer_Destroy(&This->cp_container);
nsIDOMHTMLBodyElement_Release(This->nsbody);
mshtml_free(This);
}
......@@ -487,6 +493,8 @@ void HTMLBodyElement_Create(HTMLElement *element)
HTMLTextContainer_Init(&ret->text_container, element);
ConnectionPointContainer_Init(&ret->cp_container, NULL, (IUnknown*)HTMLBODY(ret));
nsres = nsIDOMHTMLElement_QueryInterface(element->nselem, &IID_nsIDOMHTMLBodyElement,
(void**)&ret->nsbody);
if(NS_FAILED(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