mshtml: Move HTMLTextContainerEvents connection point to HTMLTextContainer object.

This commit is contained in:
Jacek Caban 2007-12-04 13:38:31 +01:00 committed by Alexandre Julliard
parent 2bcd1f0e9e
commit cd68aacbbc
3 changed files with 4 additions and 3 deletions

View File

@ -41,7 +41,6 @@ typedef struct {
const IHTMLBodyElementVtbl *lpHTMLBodyElementVtbl; const IHTMLBodyElementVtbl *lpHTMLBodyElementVtbl;
ConnectionPoint cp_propnotif; ConnectionPoint cp_propnotif;
ConnectionPoint cp_txtcontevents;
nsIDOMHTMLBodyElement *nsbody; nsIDOMHTMLBodyElement *nsbody;
} HTMLBodyElement; } HTMLBodyElement;
@ -502,8 +501,6 @@ HTMLElement *HTMLBodyElement_Create(nsIDOMHTMLElement *nselem)
ret->textcont.element.node.vtbl = &HTMLBodyElementImplVtbl; ret->textcont.element.node.vtbl = &HTMLBodyElementImplVtbl;
ConnectionPoint_Init(&ret->cp_propnotif, &ret->textcont.element.cp_container, &IID_IPropertyNotifySink); ConnectionPoint_Init(&ret->cp_propnotif, &ret->textcont.element.cp_container, &IID_IPropertyNotifySink);
ConnectionPoint_Init(&ret->cp_txtcontevents, &ret->textcont.element.cp_container,
&DIID_HTMLTextContainerEvents);
nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLBodyElement, nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLBodyElement,
(void**)&ret->nsbody); (void**)&ret->nsbody);

View File

@ -216,4 +216,6 @@ void HTMLTextContainer_Init(HTMLTextContainer *This)
HTMLElement_Init(&This->element); HTMLElement_Init(&This->element);
This->lpHTMLTextContainerVtbl = &HTMLTextContainerVtbl; This->lpHTMLTextContainerVtbl = &HTMLTextContainerVtbl;
ConnectionPoint_Init(&This->cp, &This->element.cp_container, &DIID_HTMLTextContainerEvents);
} }

View File

@ -297,6 +297,8 @@ typedef struct {
HTMLElement element; HTMLElement element;
const IHTMLTextContainerVtbl *lpHTMLTextContainerVtbl; const IHTMLTextContainerVtbl *lpHTMLTextContainerVtbl;
ConnectionPoint cp;
} HTMLTextContainer; } HTMLTextContainer;
#define HTMLWINDOW2(x) ((IHTMLWindow2*) &(x)->lpHTMLWindow2Vtbl) #define HTMLWINDOW2(x) ((IHTMLWindow2*) &(x)->lpHTMLWindow2Vtbl)