mshtml: Move HTMLTextContainerEvents connection point to HTMLTextContainer object.
This commit is contained in:
parent
2bcd1f0e9e
commit
cd68aacbbc
|
@ -41,7 +41,6 @@ typedef struct {
|
|||
const IHTMLBodyElementVtbl *lpHTMLBodyElementVtbl;
|
||||
|
||||
ConnectionPoint cp_propnotif;
|
||||
ConnectionPoint cp_txtcontevents;
|
||||
|
||||
nsIDOMHTMLBodyElement *nsbody;
|
||||
} HTMLBodyElement;
|
||||
|
@ -502,8 +501,6 @@ HTMLElement *HTMLBodyElement_Create(nsIDOMHTMLElement *nselem)
|
|||
ret->textcont.element.node.vtbl = &HTMLBodyElementImplVtbl;
|
||||
|
||||
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,
|
||||
(void**)&ret->nsbody);
|
||||
|
|
|
@ -216,4 +216,6 @@ void HTMLTextContainer_Init(HTMLTextContainer *This)
|
|||
HTMLElement_Init(&This->element);
|
||||
|
||||
This->lpHTMLTextContainerVtbl = &HTMLTextContainerVtbl;
|
||||
|
||||
ConnectionPoint_Init(&This->cp, &This->element.cp_container, &DIID_HTMLTextContainerEvents);
|
||||
}
|
||||
|
|
|
@ -297,6 +297,8 @@ typedef struct {
|
|||
HTMLElement element;
|
||||
|
||||
const IHTMLTextContainerVtbl *lpHTMLTextContainerVtbl;
|
||||
|
||||
ConnectionPoint cp;
|
||||
} HTMLTextContainer;
|
||||
|
||||
#define HTMLWINDOW2(x) ((IHTMLWindow2*) &(x)->lpHTMLWindow2Vtbl)
|
||||
|
|
Loading…
Reference in New Issue