Module: wine Branch: master Commit: 982dce485a356a29e0d92e5eca7cdac11e2b7ecf URL: http://source.winehq.org/git/wine.git/?a=commit;h=982dce485a356a29e0d92e5eca...
Author: Jacek Caban jacek@codeweavers.com Date: Fri Jun 29 02:50:39 2007 +0200
mshtml: Added IConnectionPointContainer implementation to HTMLBodyElement.
---
dlls/mshtml/htmlbody.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/htmlbody.c b/dlls/mshtml/htmlbody.c index ee23922..c06dcc5 100644 --- a/dlls/mshtml/htmlbody.c +++ b/dlls/mshtml/htmlbody.c @@ -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))