mshtml: Share connection points between HTMLDocumentObj and its main HTMLDocumentNode.
This commit is contained in:
parent
24cccbf4d1
commit
19415addec
|
@ -260,6 +260,9 @@ static HRESULT WINAPI ConnectionPointContainer_FindConnectionPoint(IConnectionPo
|
|||
|
||||
TRACE("(%p)->(%s %p)\n", This, debugstr_cp_guid(riid), ppCP);
|
||||
|
||||
if(This->forward_container)
|
||||
return IConnectionPointContainer_FindConnectionPoint(CONPTCONT(This), riid, ppCP);
|
||||
|
||||
*ppCP = NULL;
|
||||
|
||||
for(iter = This->cp_list; iter; iter = iter->next) {
|
||||
|
|
|
@ -1825,6 +1825,8 @@ HRESULT create_doc_from_nsdoc(nsIDOMHTMLDocument *nsdoc, HTMLDocumentObj *doc_ob
|
|||
doc->ref = 1;
|
||||
|
||||
doc->basedoc.window = window;
|
||||
if(window == doc_obj->basedoc.window)
|
||||
doc->basedoc.cp_container.forward_container = &doc_obj->basedoc.cp_container;
|
||||
|
||||
nsIDOMHTMLDocument_AddRef(nsdoc);
|
||||
doc->nsdoc = nsdoc;
|
||||
|
|
|
@ -261,11 +261,12 @@ typedef enum {
|
|||
EDITMODE
|
||||
} USERMODE;
|
||||
|
||||
typedef struct {
|
||||
typedef struct ConnectionPointContainer {
|
||||
const IConnectionPointContainerVtbl *lpConnectionPointContainerVtbl;
|
||||
|
||||
ConnectionPoint *cp_list;
|
||||
IUnknown *outer;
|
||||
struct ConnectionPointContainer *forward_container;
|
||||
} ConnectionPointContainer;
|
||||
|
||||
struct ConnectionPoint {
|
||||
|
|
Loading…
Reference in New Issue