Commit 46d4d263 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml: Get rid of the outer_unk in basedoc.

parent f852f1a6
......@@ -420,21 +420,21 @@ static HRESULT WINAPI HTMLDocument_QueryInterface(IHTMLDocument2 *iface, REFIID
{
HTMLDocumentNode *This = impl_from_IHTMLDocument2(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI HTMLDocument_AddRef(IHTMLDocument2 *iface)
{
HTMLDocumentNode *This = impl_from_IHTMLDocument2(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI HTMLDocument_Release(IHTMLDocument2 *iface)
{
HTMLDocumentNode *This = impl_from_IHTMLDocument2(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI HTMLDocument_GetTypeInfoCount(IHTMLDocument2 *iface, UINT *pctinfo)
......@@ -2169,19 +2169,19 @@ static inline HTMLDocumentNode *impl_from_IHTMLDocument3(IHTMLDocument3 *iface)
static HRESULT WINAPI HTMLDocument3_QueryInterface(IHTMLDocument3 *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = impl_from_IHTMLDocument3(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI HTMLDocument3_AddRef(IHTMLDocument3 *iface)
{
HTMLDocumentNode *This = impl_from_IHTMLDocument3(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI HTMLDocument3_Release(IHTMLDocument3 *iface)
{
HTMLDocumentNode *This = impl_from_IHTMLDocument3(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI HTMLDocument3_GetTypeInfoCount(IHTMLDocument3 *iface, UINT *pctinfo)
......@@ -2780,19 +2780,19 @@ static inline HTMLDocumentNode *impl_from_IHTMLDocument4(IHTMLDocument4 *iface)
static HRESULT WINAPI HTMLDocument4_QueryInterface(IHTMLDocument4 *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = impl_from_IHTMLDocument4(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI HTMLDocument4_AddRef(IHTMLDocument4 *iface)
{
HTMLDocumentNode *This = impl_from_IHTMLDocument4(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI HTMLDocument4_Release(IHTMLDocument4 *iface)
{
HTMLDocumentNode *This = impl_from_IHTMLDocument4(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI HTMLDocument4_GetTypeInfoCount(IHTMLDocument4 *iface, UINT *pctinfo)
......@@ -3013,19 +3013,19 @@ static inline HTMLDocumentNode *impl_from_IHTMLDocument5(IHTMLDocument5 *iface)
static HRESULT WINAPI HTMLDocument5_QueryInterface(IHTMLDocument5 *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = impl_from_IHTMLDocument5(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI HTMLDocument5_AddRef(IHTMLDocument5 *iface)
{
HTMLDocumentNode *This = impl_from_IHTMLDocument5(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI HTMLDocument5_Release(IHTMLDocument5 *iface)
{
HTMLDocumentNode *This = impl_from_IHTMLDocument5(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI HTMLDocument5_GetTypeInfoCount(IHTMLDocument5 *iface, UINT *pctinfo)
......@@ -3314,19 +3314,19 @@ static inline HTMLDocumentNode *impl_from_IHTMLDocument6(IHTMLDocument6 *iface)
static HRESULT WINAPI HTMLDocument6_QueryInterface(IHTMLDocument6 *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = impl_from_IHTMLDocument6(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI HTMLDocument6_AddRef(IHTMLDocument6 *iface)
{
HTMLDocumentNode *This = impl_from_IHTMLDocument6(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI HTMLDocument6_Release(IHTMLDocument6 *iface)
{
HTMLDocumentNode *This = impl_from_IHTMLDocument6(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI HTMLDocument6_GetTypeInfoCount(IHTMLDocument6 *iface, UINT *pctinfo)
......@@ -3491,19 +3491,19 @@ static inline HTMLDocumentNode *impl_from_IHTMLDocument7(IHTMLDocument7 *iface)
static HRESULT WINAPI HTMLDocument7_QueryInterface(IHTMLDocument7 *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = impl_from_IHTMLDocument7(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI HTMLDocument7_AddRef(IHTMLDocument7 *iface)
{
HTMLDocumentNode *This = impl_from_IHTMLDocument7(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI HTMLDocument7_Release(IHTMLDocument7 *iface)
{
HTMLDocumentNode *This = impl_from_IHTMLDocument7(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI HTMLDocument7_GetTypeInfoCount(IHTMLDocument7 *iface, UINT *pctinfo)
......@@ -4541,19 +4541,19 @@ static inline HTMLDocumentNode *impl_from_IDocumentSelector(IDocumentSelector *i
static HRESULT WINAPI DocumentSelector_QueryInterface(IDocumentSelector *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = impl_from_IDocumentSelector(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocumentSelector_AddRef(IDocumentSelector *iface)
{
HTMLDocumentNode *This = impl_from_IDocumentSelector(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocumentSelector_Release(IDocumentSelector *iface)
{
HTMLDocumentNode *This = impl_from_IDocumentSelector(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocumentSelector_GetTypeInfoCount(IDocumentSelector *iface, UINT *pctinfo)
......@@ -4660,19 +4660,19 @@ static inline HTMLDocumentNode *impl_from_IDocumentEvent(IDocumentEvent *iface)
static HRESULT WINAPI DocumentEvent_QueryInterface(IDocumentEvent *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = impl_from_IDocumentEvent(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocumentEvent_AddRef(IDocumentEvent *iface)
{
HTMLDocumentNode *This = impl_from_IDocumentEvent(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocumentEvent_Release(IDocumentEvent *iface)
{
HTMLDocumentNode *This = impl_from_IDocumentEvent(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocumentEvent_GetTypeInfoCount(IDocumentEvent *iface, UINT *pctinfo)
......@@ -4740,19 +4740,19 @@ static inline HTMLDocumentNode *impl_from_ISupportErrorInfo(ISupportErrorInfo *i
static HRESULT WINAPI SupportErrorInfo_QueryInterface(ISupportErrorInfo *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = impl_from_ISupportErrorInfo(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI SupportErrorInfo_AddRef(ISupportErrorInfo *iface)
{
HTMLDocumentNode *This = impl_from_ISupportErrorInfo(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI SupportErrorInfo_Release(ISupportErrorInfo *iface)
{
HTMLDocumentNode *This = impl_from_ISupportErrorInfo(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI SupportErrorInfo_InterfaceSupportsErrorInfo(ISupportErrorInfo *iface, REFIID riid)
......@@ -4877,21 +4877,21 @@ static HRESULT WINAPI DocDispatchEx_QueryInterface(IDispatchEx *iface, REFIID ri
{
HTMLDocumentNode *This = impl_from_IDispatchEx(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocDispatchEx_AddRef(IDispatchEx *iface)
{
HTMLDocumentNode *This = impl_from_IDispatchEx(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocDispatchEx_Release(IDispatchEx *iface)
{
HTMLDocumentNode *This = impl_from_IDispatchEx(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocDispatchEx_GetTypeInfoCount(IDispatchEx *iface, UINT *pctinfo)
......@@ -5044,19 +5044,19 @@ static HRESULT WINAPI ProvideClassInfo_QueryInterface(IProvideMultipleClassInfo
REFIID riid, void **ppv)
{
HTMLDocumentNode *This = impl_from_IProvideMultipleClassInfo(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI ProvideClassInfo_AddRef(IProvideMultipleClassInfo *iface)
{
HTMLDocumentNode *This = impl_from_IProvideMultipleClassInfo(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI ProvideClassInfo_Release(IProvideMultipleClassInfo *iface)
{
HTMLDocumentNode *This = impl_from_IProvideMultipleClassInfo(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI ProvideClassInfo_GetClassInfo(IProvideMultipleClassInfo *iface, ITypeInfo **ppTI)
......@@ -5110,19 +5110,19 @@ static inline HTMLDocumentNode *impl_from_IMarkupServices(IMarkupServices *iface
static HRESULT WINAPI MarkupServices_QueryInterface(IMarkupServices *iface, REFIID riid, void **ppvObject)
{
HTMLDocumentNode *This = impl_from_IMarkupServices(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppvObject);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppvObject);
}
static ULONG WINAPI MarkupServices_AddRef(IMarkupServices *iface)
{
HTMLDocumentNode *This = impl_from_IMarkupServices(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI MarkupServices_Release(IMarkupServices *iface)
{
HTMLDocumentNode *This = impl_from_IMarkupServices(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI MarkupServices_CreateMarkupPointer(IMarkupServices *iface, IMarkupPointer **ppPointer)
......@@ -5324,19 +5324,19 @@ static inline HTMLDocumentNode *impl_from_IMarkupContainer(IMarkupContainer *ifa
static HRESULT WINAPI MarkupContainer_QueryInterface(IMarkupContainer *iface, REFIID riid, void **ppvObject)
{
HTMLDocumentNode *This = impl_from_IMarkupContainer(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppvObject);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppvObject);
}
static ULONG WINAPI MarkupContainer_AddRef(IMarkupContainer *iface)
{
HTMLDocumentNode *This = impl_from_IMarkupContainer(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI MarkupContainer_Release(IMarkupContainer *iface)
{
HTMLDocumentNode *This = impl_from_IMarkupContainer(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI MarkupContainer_OwningDoc(IMarkupContainer *iface, IHTMLDocument2 **ppDoc)
......@@ -5364,19 +5364,19 @@ static inline HTMLDocumentNode *impl_from_IDisplayServices(IDisplayServices *ifa
static HRESULT WINAPI DisplayServices_QueryInterface(IDisplayServices *iface, REFIID riid, void **ppvObject)
{
HTMLDocumentNode *This = impl_from_IDisplayServices(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppvObject);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppvObject);
}
static ULONG WINAPI DisplayServices_AddRef(IDisplayServices *iface)
{
HTMLDocumentNode *This = impl_from_IDisplayServices(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DisplayServices_Release(IDisplayServices *iface)
{
HTMLDocumentNode *This = impl_from_IDisplayServices(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DisplayServices_CreateDisplayPointer(IDisplayServices *iface, IDisplayPointer **ppDispPointer)
......@@ -5458,21 +5458,21 @@ static HRESULT WINAPI DocumentRange_QueryInterface(IDocumentRange *iface, REFIID
{
HTMLDocumentNode *This = impl_from_IDocumentRange(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocumentRange_AddRef(IDocumentRange *iface)
{
HTMLDocumentNode *This = impl_from_IDocumentRange(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocumentRange_Release(IDocumentRange *iface)
{
HTMLDocumentNode *This = impl_from_IDocumentRange(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocumentRange_GetTypeInfoCount(IDocumentRange *iface, UINT *pctinfo)
......@@ -6068,7 +6068,6 @@ static HTMLDocumentNode *alloc_doc_node(HTMLDocumentObj *doc_obj, HTMLInnerWindo
doc->basedoc.window = window ? window->base.outer_window : NULL;
doc->window = window;
doc->basedoc.outer_unk = (IUnknown*)&doc->node.IHTMLDOMNode_iface;
ConnectionPointContainer_Init(&doc->cp_container, (IUnknown*)&doc->IHTMLDocument2_iface, HTMLDocumentNode_cpc);
HTMLDocumentNode_Persist_Init(doc);
HTMLDocumentNode_Service_Init(doc);
......
......@@ -1441,7 +1441,7 @@ void HTMLDOMNode_destructor(HTMLDOMNode *This)
if(This->nsnode)
nsIDOMNode_Release(This->nsnode);
if(This->doc && &This->doc->node != This)
htmldoc_release(&This->doc->basedoc);
IHTMLDOMNode_Release(&This->doc->node.IHTMLDOMNode_iface);
}
static HRESULT HTMLDOMNode_clone(HTMLDOMNode *This, nsIDOMNode *nsnode, HTMLDOMNode **ret)
......@@ -1479,7 +1479,7 @@ void HTMLDOMNode_Init(HTMLDocumentNode *doc, HTMLDOMNode *node, nsIDOMNode *nsno
EventTarget_Init(&node->event_target, (IUnknown*)&node->IHTMLDOMNode_iface, dispex_data, doc->document_mode);
if(&doc->node != node)
htmldoc_addref(&doc->basedoc);
IHTMLDOMNode_AddRef(&doc->node.IHTMLDOMNode_iface);
node->doc = doc;
nsIDOMNode_AddRef(nsnode);
......@@ -1601,7 +1601,7 @@ static nsresult NSAPI HTMLDOMNode_unlink(void *p)
if(This->doc && &This->doc->node != This) {
HTMLDocumentNode *doc = This->doc;
This->doc = NULL;
htmldoc_release(&doc->basedoc);
IHTMLDOMNode_Release(&doc->node.IHTMLDOMNode_iface);
}else {
This->doc = NULL;
}
......@@ -1667,6 +1667,6 @@ HRESULT get_node(nsIDOMNode *nsnode, BOOL create, HTMLDOMNode **ret)
return E_FAIL;
hres = create_node(document, nsnode, ret);
htmldoc_release(&document->basedoc);
IHTMLDOMNode_Release(&document->node.IHTMLDOMNode_iface);
return hres;
}
......@@ -259,7 +259,7 @@ static void release_inner_window(HTMLInnerWindow *This)
if(This->doc) {
This->doc->window = NULL;
htmldoc_release(&This->doc->basedoc);
IHTMLDOMNode_Release(&This->doc->node.IHTMLDOMNode_iface);
}
release_event_target(&This->event_target);
......@@ -4187,9 +4187,9 @@ HRESULT update_window_doc(HTMLInnerWindow *window)
if(is_main_content_window(outer_window) || !outer_window->browser->content_window) {
HTMLDocumentObj *doc_obj = outer_window->browser->doc;
if(doc_obj->basedoc.doc_node)
htmldoc_release(&doc_obj->basedoc.doc_node->basedoc);
IHTMLDOMNode_Release(&doc_obj->basedoc.doc_node->node.IHTMLDOMNode_iface);
doc_obj->basedoc.doc_node = window->doc;
htmldoc_addref(&window->doc->basedoc);
IHTMLDOMNode_AddRef(&window->doc->node.IHTMLDOMNode_iface);
}
return hres;
......
......@@ -640,29 +640,12 @@ struct ConnectionPoint {
};
struct HTMLDocument {
IUnknown *outer_unk;
HTMLDocumentObj *doc_obj;
HTMLDocumentNode *doc_node;
HTMLOuterWindow *window;
};
static inline HRESULT htmldoc_query_interface(HTMLDocument *This, REFIID riid, void **ppv)
{
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static inline ULONG htmldoc_addref(HTMLDocument *This)
{
return IUnknown_AddRef(This->outer_unk);
}
static inline ULONG htmldoc_release(HTMLDocument *This)
{
return IUnknown_Release(This->outer_unk);
}
struct HTMLDocumentObj {
HTMLDocument basedoc;
DispatchEx dispex;
......@@ -707,6 +690,7 @@ struct HTMLDocumentObj {
LONG ref;
IUnknown *outer_unk;
GeckoBrowser *nscontainer;
IOleClientSite *client;
......
......@@ -605,7 +605,7 @@ static nsrefcnt NSAPI nsRunnable_Release(nsIRunnable *iface)
TRACE("(%p) ref=%ld\n", This, ref);
if(!ref) {
htmldoc_release(&This->doc->basedoc);
IHTMLDOMNode_Release(&This->doc->node.IHTMLDOMNode_iface);
if(This->arg1)
nsISupports_Release(This->arg1);
if(This->arg2)
......@@ -641,7 +641,7 @@ static void add_script_runner(HTMLDocumentNode *This, runnable_proc_t proc, nsIS
runnable->nsIRunnable_iface.lpVtbl = &nsRunnableVtbl;
runnable->ref = 1;
htmldoc_addref(&This->basedoc);
IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
runnable->doc = This;
runnable->proc = proc;
......@@ -683,20 +683,20 @@ static nsresult NSAPI nsDocumentObserver_QueryInterface(nsIDocumentObserver *ifa
return NS_NOINTERFACE;
}
htmldoc_addref(&This->basedoc);
IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
return NS_OK;
}
static nsrefcnt NSAPI nsDocumentObserver_AddRef(nsIDocumentObserver *iface)
{
HTMLDocumentNode *This = impl_from_nsIDocumentObserver(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static nsrefcnt NSAPI nsDocumentObserver_Release(nsIDocumentObserver *iface)
{
HTMLDocumentNode *This = impl_from_nsIDocumentObserver(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static void NSAPI nsDocumentObserver_CharacterDataWillChange(nsIDocumentObserver *iface,
......
......@@ -237,7 +237,7 @@ static nsresult NSAPI handle_load(nsIDOMEventListener *iface, nsIDOMEvent *event
connect_scripts(doc->window);
htmldoc_addref(&doc->basedoc);
IHTMLDOMNode_AddRef(&doc->node.IHTMLDOMNode_iface);
if(doc_obj)
handle_docobj_load(doc_obj);
......@@ -278,7 +278,7 @@ static nsresult NSAPI handle_load(nsIDOMEventListener *iface, nsIDOMEvent *event
WARN("no window\n");
}
htmldoc_release(&doc->basedoc);
IHTMLDOMNode_Release(&doc->node.IHTMLDOMNode_iface);
return NS_OK;
}
......
......@@ -801,19 +801,19 @@ static const cmdtable_t base_cmds[] = {
static HRESULT WINAPI DocNodeOleCommandTarget_QueryInterface(IOleCommandTarget *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleCommandTarget(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocNodeOleCommandTarget_AddRef(IOleCommandTarget *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleCommandTarget(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocNodeOleCommandTarget_Release(IOleCommandTarget *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleCommandTarget(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT query_from_table(HTMLDocumentNode *doc, const cmdtable_t *cmdtable, OLECMD *cmd)
......@@ -965,19 +965,19 @@ static const IOleCommandTargetVtbl DocNodeOleCommandTargetVtbl = {
static HRESULT WINAPI DocObjOleCommandTarget_QueryInterface(IOleCommandTarget *iface, REFIID riid, void **ppv)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleCommandTarget(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI DocObjOleCommandTarget_AddRef(IOleCommandTarget *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleCommandTarget(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI DocObjOleCommandTarget_Release(IOleCommandTarget *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleCommandTarget(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI DocObjOleCommandTarget_QueryStatus(IOleCommandTarget *iface, const GUID *pguidCmdGroup,
......
......@@ -147,19 +147,19 @@ static inline HTMLDocumentNode *HTMLDocumentNode_from_IOleObject(IOleObject *ifa
static HRESULT WINAPI DocNodeOleObject_QueryInterface(IOleObject *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleObject(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocNodeOleObject_AddRef(IOleObject *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleObject(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocNodeOleObject_Release(IOleObject *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleObject(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocNodeOleObject_SetClientSite(IOleObject *iface, IOleClientSite *pClientSite)
......@@ -336,19 +336,19 @@ static inline HTMLDocumentObj *HTMLDocumentObj_from_IOleObject(IOleObject *iface
static HRESULT WINAPI DocObjOleObject_QueryInterface(IOleObject *iface, REFIID riid, void **ppv)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleObject(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI DocObjOleObject_AddRef(IOleObject *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleObject(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI DocObjOleObject_Release(IOleObject *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleObject(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static void update_hostinfo(HTMLDocumentObj *This, DOCHOSTUIINFO *hostinfo)
......@@ -909,19 +909,19 @@ static inline HTMLDocumentNode *HTMLDocumentNode_from_IOleDocument(IOleDocument
static HRESULT WINAPI DocNodeOleDocument_QueryInterface(IOleDocument *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleDocument(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocNodeOleDocument_AddRef(IOleDocument *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleDocument(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocNodeOleDocument_Release(IOleDocument *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleDocument(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocNodeOleDocument_CreateView(IOleDocument *iface, IOleInPlaceSite *pIPSite, IStream *pstm,
......@@ -963,19 +963,19 @@ static inline HTMLDocumentObj *HTMLDocumentObj_from_IOleDocument(IOleDocument *i
static HRESULT WINAPI DocObjOleDocument_QueryInterface(IOleDocument *iface, REFIID riid, void **ppv)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleDocument(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI DocObjOleDocument_AddRef(IOleDocument *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleDocument(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI DocObjOleDocument_Release(IOleDocument *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleDocument(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI DocObjOleDocument_CreateView(IOleDocument *iface, IOleInPlaceSite *pIPSite, IStream *pstm,
......@@ -1046,19 +1046,19 @@ static inline HTMLDocumentNode *HTMLDocumentNode_from_IOleControl(IOleControl *i
static HRESULT WINAPI DocNodeOleControl_QueryInterface(IOleControl *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleControl(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocNodeOleControl_AddRef(IOleControl *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleControl(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocNodeOleControl_Release(IOleControl *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleControl(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocNodeOleControl_GetControlInfo(IOleControl *iface, CONTROLINFO *pCI)
......@@ -1106,19 +1106,19 @@ static inline HTMLDocumentObj *HTMLDocumentObj_from_IOleControl(IOleControl *ifa
static HRESULT WINAPI DocObjOleControl_QueryInterface(IOleControl *iface, REFIID riid, void **ppv)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleControl(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI DocObjOleControl_AddRef(IOleControl *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleControl(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI DocObjOleControl_Release(IOleControl *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleControl(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI DocObjOleControl_GetControlInfo(IOleControl *iface, CONTROLINFO *pCI)
......@@ -1286,19 +1286,19 @@ static inline HTMLDocumentNode *HTMLDocumentNode_from_IOleInPlaceActiveObject(IO
static HRESULT WINAPI DocNodeOleInPlaceActiveObject_QueryInterface(IOleInPlaceActiveObject *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleInPlaceActiveObject(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocNodeOleInPlaceActiveObject_AddRef(IOleInPlaceActiveObject *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleInPlaceActiveObject(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocNodeOleInPlaceActiveObject_Release(IOleInPlaceActiveObject *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleInPlaceActiveObject(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocNodeOleInPlaceActiveObject_GetWindow(IOleInPlaceActiveObject *iface, HWND *phwnd)
......@@ -1371,19 +1371,19 @@ static inline HTMLDocumentObj *HTMLDocumentObj_from_IOleInPlaceActiveObject(IOle
static HRESULT WINAPI DocObjOleInPlaceActiveObject_QueryInterface(IOleInPlaceActiveObject *iface, REFIID riid, void **ppv)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleInPlaceActiveObject(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI DocObjOleInPlaceActiveObject_AddRef(IOleInPlaceActiveObject *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleInPlaceActiveObject(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI DocObjOleInPlaceActiveObject_Release(IOleInPlaceActiveObject *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleInPlaceActiveObject(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI DocObjOleInPlaceActiveObject_GetWindow(IOleInPlaceActiveObject *iface, HWND *phwnd)
......@@ -1479,19 +1479,19 @@ static HRESULT WINAPI DocNodeOleInPlaceObjectWindowless_QueryInterface(IOleInPla
REFIID riid, void **ppv)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleInPlaceObjectWindowless(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocNodeOleInPlaceObjectWindowless_AddRef(IOleInPlaceObjectWindowless *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleInPlaceObjectWindowless(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocNodeOleInPlaceObjectWindowless_Release(IOleInPlaceObjectWindowless *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleInPlaceObjectWindowless(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocNodeOleInPlaceObjectWindowless_GetWindow(IOleInPlaceObjectWindowless *iface,
......@@ -1574,19 +1574,19 @@ static HRESULT WINAPI DocObjOleInPlaceObjectWindowless_QueryInterface(IOleInPlac
REFIID riid, void **ppv)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleInPlaceObjectWindowless(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI DocObjOleInPlaceObjectWindowless_AddRef(IOleInPlaceObjectWindowless *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleInPlaceObjectWindowless(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI DocObjOleInPlaceObjectWindowless_Release(IOleInPlaceObjectWindowless *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleInPlaceObjectWindowless(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI DocObjOleInPlaceObjectWindowless_GetWindow(IOleInPlaceObjectWindowless *iface,
......@@ -1717,19 +1717,19 @@ static inline HTMLDocumentNode *HTMLDocumentNode_from_IObjectWithSite(IObjectWit
static HRESULT WINAPI DocNodeObjectWithSite_QueryInterface(IObjectWithSite *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IObjectWithSite(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocNodeObjectWithSite_AddRef(IObjectWithSite *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IObjectWithSite(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocNodeObjectWithSite_Release(IObjectWithSite *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IObjectWithSite(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocNodeObjectWithSite_SetSite(IObjectWithSite *iface, IUnknown *pUnkSite)
......@@ -1762,19 +1762,19 @@ static inline HTMLDocumentObj *HTMLDocumentObj_from_IObjectWithSite(IObjectWithS
static HRESULT WINAPI DocObjObjectWithSite_QueryInterface(IObjectWithSite *iface, REFIID riid, void **ppv)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IObjectWithSite(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI DocObjObjectWithSite_AddRef(IObjectWithSite *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IObjectWithSite(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI DocObjObjectWithSite_Release(IObjectWithSite *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IObjectWithSite(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI DocObjObjectWithSite_SetSite(IObjectWithSite *iface, IUnknown *pUnkSite)
......@@ -1811,19 +1811,19 @@ static inline HTMLDocumentNode *HTMLDocumentNode_from_IOleContainer(IOleContaine
static HRESULT WINAPI DocNodeOleContainer_QueryInterface(IOleContainer *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleContainer(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocNodeOleContainer_AddRef(IOleContainer *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleContainer(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocNodeOleContainer_Release(IOleContainer *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IOleContainer(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocNodeOleContainer_ParseDisplayName(IOleContainer *iface, IBindCtx *pbc, LPOLESTR pszDisplayName,
......@@ -1864,19 +1864,19 @@ static inline HTMLDocumentObj *HTMLDocumentObj_from_IOleContainer(IOleContainer
static HRESULT WINAPI DocObjOleContainer_QueryInterface(IOleContainer *iface, REFIID riid, void **ppv)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleContainer(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI DocObjOleContainer_AddRef(IOleContainer *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleContainer(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI DocObjOleContainer_Release(IOleContainer *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IOleContainer(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI DocObjOleContainer_ParseDisplayName(IOleContainer *iface, IBindCtx *pbc, LPOLESTR pszDisplayName,
......@@ -1988,19 +1988,19 @@ static inline HTMLDocumentNode *HTMLDocumentNode_from_IObjectSafety(IObjectSafet
static HRESULT WINAPI DocNodeObjectSafety_QueryInterface(IObjectSafety *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IObjectSafety(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocNodeObjectSafety_AddRef(IObjectSafety *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IObjectSafety(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocNodeObjectSafety_Release(IObjectSafety *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IObjectSafety(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocNodeObjectSafety_GetInterfaceSafetyOptions(IObjectSafety *iface,
......@@ -2035,19 +2035,19 @@ static inline HTMLDocumentObj *HTMLDocumentObj_from_IObjectSafety(IObjectSafety
static HRESULT WINAPI DocObjObjectSafety_QueryInterface(IObjectSafety *iface, REFIID riid, void **ppv)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IObjectSafety(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI DocObjObjectSafety_AddRef(IObjectSafety *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IObjectSafety(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI DocObjObjectSafety_Release(IObjectSafety *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IObjectSafety(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI DocObjObjectSafety_GetInterfaceSafetyOptions(IObjectSafety *iface,
......@@ -2128,17 +2128,17 @@ static void HTMLDocumentObj_OleObj_Init(HTMLDocumentObj *This)
static HRESULT WINAPI DocObj##iface##_QueryInterface(I##iface *_0, REFIID riid, void **ppv) \
{ \
HTMLDocumentObj *This = CONTAINING_RECORD(_0, HTMLDocumentObj, I##iface##_iface); \
return htmldoc_query_interface(&This->basedoc, riid, ppv); \
return IUnknown_QueryInterface(This->outer_unk, riid, ppv); \
} \
static ULONG WINAPI DocObj##iface##_AddRef(I##iface *_0) \
{ \
HTMLDocumentObj *This = CONTAINING_RECORD(_0, HTMLDocumentObj, I##iface##_iface); \
return htmldoc_addref(&This->basedoc); \
return IUnknown_AddRef(This->outer_unk); \
} \
static ULONG WINAPI DocObj##iface##_Release(I##iface *_0) \
{ \
HTMLDocumentObj *This = CONTAINING_RECORD(_0, HTMLDocumentObj, I##iface##_iface); \
return htmldoc_release(&This->basedoc); \
return IUnknown_Release(This->outer_unk); \
}
#define HTMLDOCUMENTOBJ_IDISPATCH_METHODS(iface) HTMLDOCUMENTOBJ_IUNKNOWN_METHODS(iface) \
......@@ -3391,7 +3391,7 @@ static ULONG WINAPI HTMLDocumentObj_Release(IUnknown *iface)
if(!ref) {
if(This->basedoc.doc_node) {
This->basedoc.doc_node->basedoc.doc_obj = NULL;
htmldoc_release(&This->basedoc.doc_node->basedoc);
IHTMLDOMNode_Release(&This->basedoc.doc_node->node.IHTMLDOMNode_iface);
}
if(This->basedoc.window)
IHTMLWindow2_Release(&This->basedoc.window->base.IHTMLWindow2_iface);
......@@ -3448,19 +3448,19 @@ static inline HTMLDocumentObj *impl_from_IDispatchEx(IDispatchEx *iface)
static HRESULT WINAPI DocObjDispatchEx_QueryInterface(IDispatchEx *iface, REFIID riid, void **ppv)
{
HTMLDocumentObj *This = impl_from_IDispatchEx(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI DocObjDispatchEx_AddRef(IDispatchEx *iface)
{
HTMLDocumentObj *This = impl_from_IDispatchEx(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI DocObjDispatchEx_Release(IDispatchEx *iface)
{
HTMLDocumentObj *This = impl_from_IDispatchEx(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI DocObjDispatchEx_GetTypeInfoCount(IDispatchEx *iface, UINT *pctinfo)
......@@ -3588,21 +3588,21 @@ static HRESULT WINAPI CustomDoc_QueryInterface(ICustomDoc *iface, REFIID riid, v
{
HTMLDocumentObj *This = impl_from_ICustomDoc(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI CustomDoc_AddRef(ICustomDoc *iface)
{
HTMLDocumentObj *This = impl_from_ICustomDoc(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI CustomDoc_Release(ICustomDoc *iface)
{
HTMLDocumentObj *This = impl_from_ICustomDoc(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI CustomDoc_SetUIHandler(ICustomDoc *iface, IDocHostUIHandler *pUIHandler)
......@@ -3735,7 +3735,7 @@ static HRESULT create_document_object(BOOL is_mhtml, IUnknown *outer, REFIID rii
doc->IDisplayServices_iface.lpVtbl = &DocObjDisplayServicesVtbl;
doc->IDocumentRange_iface.lpVtbl = &DocObjDocumentRangeVtbl;
doc->basedoc.outer_unk = outer ? outer : &doc->IUnknown_inner;
doc->outer_unk = outer ? outer : &doc->IUnknown_inner;
doc->basedoc.doc_obj = doc;
init_dispatch(&doc->dispex, (IUnknown*)&doc->ICustomDoc_iface, &HTMLDocumentObj_dispex, COMPAT_MODE_QUIRKS);
......@@ -3754,15 +3754,15 @@ static HRESULT create_document_object(BOOL is_mhtml, IUnknown *outer, REFIID rii
hres = create_gecko_browser(doc, &doc->nscontainer);
if(FAILED(hres)) {
ERR("Failed to init Gecko, returning CLASS_E_CLASSNOTAVAILABLE\n");
htmldoc_release(&doc->basedoc);
IUnknown_Release(&doc->IUnknown_inner);
return hres;
}
if(IsEqualGUID(&IID_IUnknown, riid)) {
*ppv = &doc->IUnknown_inner;
}else {
hres = htmldoc_query_interface(&doc->basedoc, riid, ppv);
htmldoc_release(&doc->basedoc);
hres = IUnknown_QueryInterface(doc->outer_unk, riid, ppv);
IUnknown_Release(doc->outer_unk);
if(FAILED(hres))
return hres;
}
......@@ -3772,7 +3772,7 @@ static HRESULT create_document_object(BOOL is_mhtml, IUnknown *outer, REFIID rii
if(!doc->basedoc.doc_node && doc->basedoc.window->base.inner_window->doc) {
doc->basedoc.doc_node = doc->basedoc.window->base.inner_window->doc;
htmldoc_addref(&doc->basedoc.doc_node->basedoc);
IHTMLDOMNode_AddRef(&doc->basedoc.doc_node->node.IHTMLDOMNode_iface);
}
get_thread_hwnd();
......
......@@ -547,19 +547,19 @@ static inline HTMLDocumentNode *HTMLDocumentNode_from_IPersistMoniker(IPersistMo
static HRESULT WINAPI DocNodePersistMoniker_QueryInterface(IPersistMoniker *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IPersistMoniker(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocNodePersistMoniker_AddRef(IPersistMoniker *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IPersistMoniker(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocNodePersistMoniker_Release(IPersistMoniker *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IPersistMoniker(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocNodePersistMoniker_GetClassID(IPersistMoniker *iface, CLSID *pClassID)
......@@ -625,19 +625,19 @@ static inline HTMLDocumentObj *HTMLDocumentObj_from_IPersistMoniker(IPersistMoni
static HRESULT WINAPI DocObjPersistMoniker_QueryInterface(IPersistMoniker *iface, REFIID riid, void **ppv)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IPersistMoniker(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI DocObjPersistMoniker_AddRef(IPersistMoniker *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IPersistMoniker(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI DocObjPersistMoniker_Release(IPersistMoniker *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IPersistMoniker(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI DocObjPersistMoniker_GetClassID(IPersistMoniker *iface, CLSID *pClassID)
......@@ -768,19 +768,19 @@ static inline HTMLDocumentNode *HTMLDocumentNode_from_IMonikerProp(IMonikerProp
static HRESULT WINAPI DocNodeMonikerProp_QueryInterface(IMonikerProp *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IMonikerProp(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocNodeMonikerProp_AddRef(IMonikerProp *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IMonikerProp(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocNodeMonikerProp_Release(IMonikerProp *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IMonikerProp(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocNodeMonikerProp_PutProperty(IMonikerProp *iface, MONIKERPROPERTY mkp, LPCWSTR val)
......@@ -804,19 +804,19 @@ static inline HTMLDocumentObj *HTMLDocumentObj_from_IMonikerProp(IMonikerProp *i
static HRESULT WINAPI DocObjMonikerProp_QueryInterface(IMonikerProp *iface, REFIID riid, void **ppv)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IMonikerProp(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI DocObjMonikerProp_AddRef(IMonikerProp *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IMonikerProp(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI DocObjMonikerProp_Release(IMonikerProp *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IMonikerProp(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI DocObjMonikerProp_PutProperty(IMonikerProp *iface, MONIKERPROPERTY mkp, LPCWSTR val)
......@@ -861,19 +861,19 @@ static inline HTMLDocumentNode *HTMLDocumentNode_from_IPersistFile(IPersistFile
static HRESULT WINAPI DocNodePersistFile_QueryInterface(IPersistFile *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IPersistFile(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocNodePersistFile_AddRef(IPersistFile *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IPersistFile(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocNodePersistFile_Release(IPersistFile *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IPersistFile(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocNodePersistFile_GetClassID(IPersistFile *iface, CLSID *pClassID)
......@@ -957,19 +957,19 @@ static inline HTMLDocumentObj *HTMLDocumentObj_from_IPersistFile(IPersistFile *i
static HRESULT WINAPI DocObjPersistFile_QueryInterface(IPersistFile *iface, REFIID riid, void **ppv)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IPersistFile(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI DocObjPersistFile_AddRef(IPersistFile *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IPersistFile(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI DocObjPersistFile_Release(IPersistFile *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IPersistFile(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI DocObjPersistFile_GetClassID(IPersistFile *iface, CLSID *pClassID)
......@@ -1047,19 +1047,19 @@ static HRESULT WINAPI DocNodePersistStreamInit_QueryInterface(IPersistStreamInit
REFIID riid, void **ppv)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IPersistStreamInit(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocNodePersistStreamInit_AddRef(IPersistStreamInit *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IPersistStreamInit(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocNodePersistStreamInit_Release(IPersistStreamInit *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IPersistStreamInit(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocNodePersistStreamInit_GetClassID(IPersistStreamInit *iface, CLSID *pClassID)
......@@ -1141,19 +1141,19 @@ static HRESULT WINAPI DocObjPersistStreamInit_QueryInterface(IPersistStreamInit
REFIID riid, void **ppv)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IPersistStreamInit(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI DocObjPersistStreamInit_AddRef(IPersistStreamInit *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IPersistStreamInit(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI DocObjPersistStreamInit_Release(IPersistStreamInit *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IPersistStreamInit(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI DocObjPersistStreamInit_GetClassID(IPersistStreamInit *iface, CLSID *pClassID)
......@@ -1261,19 +1261,19 @@ static inline HTMLDocumentNode *HTMLDocumentNode_from_IPersistHistory(IPersistHi
static HRESULT WINAPI DocNodePersistHistory_QueryInterface(IPersistHistory *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IPersistHistory(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocNodePersistHistory_AddRef(IPersistHistory *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IPersistHistory(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocNodePersistHistory_Release(IPersistHistory *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IPersistHistory(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocNodePersistHistory_GetClassID(IPersistHistory *iface, CLSID *pClassID)
......@@ -1327,19 +1327,19 @@ static inline HTMLDocumentObj *HTMLDocumentObj_from_IPersistHistory(IPersistHist
static HRESULT WINAPI DocObjPersistHistory_QueryInterface(IPersistHistory *iface, REFIID riid, void **ppv)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IPersistHistory(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI DocObjPersistHistory_AddRef(IPersistHistory *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IPersistHistory(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI DocObjPersistHistory_Release(IPersistHistory *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IPersistHistory(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI DocObjPersistHistory_GetClassID(IPersistHistory *iface, CLSID *pClassID)
......@@ -1467,19 +1467,19 @@ static inline HTMLDocumentNode *HTMLDocumentNode_from_IHlinkTarget(IHlinkTarget
static HRESULT WINAPI DocNodeHlinkTarget_QueryInterface(IHlinkTarget *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IHlinkTarget(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocNodeHlinkTarget_AddRef(IHlinkTarget *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IHlinkTarget(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocNodeHlinkTarget_Release(IHlinkTarget *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IHlinkTarget(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocNodeHlinkTarget_SetBrowseContext(IHlinkTarget *iface, IHlinkBrowseContext *pihlbc)
......@@ -1548,19 +1548,19 @@ static inline HTMLDocumentObj *HTMLDocumentObj_from_IHlinkTarget(IHlinkTarget *i
static HRESULT WINAPI DocObjHlinkTarget_QueryInterface(IHlinkTarget *iface, REFIID riid, void **ppv)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IHlinkTarget(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI DocObjHlinkTarget_AddRef(IHlinkTarget *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IHlinkTarget(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI DocObjHlinkTarget_Release(IHlinkTarget *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IHlinkTarget(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI DocObjHlinkTarget_SetBrowseContext(IHlinkTarget *iface, IHlinkBrowseContext *pihlbc)
......
......@@ -1473,7 +1473,7 @@ static EventTarget *find_event_target(HTMLDocumentNode *doc, HTMLScriptElement *
FIXME("Empty for attribute\n");
}else if(!wcscmp(target_id, L"document")) {
event_target = &doc->node.event_target;
htmldoc_addref(&doc->basedoc);
IHTMLDOMNode_AddRef(&doc->node.IHTMLDOMNode_iface);
}else if(!wcscmp(target_id, L"window")) {
if(doc->window) {
event_target = &doc->window->event_target;
......
......@@ -340,19 +340,19 @@ static inline HTMLDocumentNode *HTMLDocumentNode_from_IServiceProvider(IServiceP
static HRESULT WINAPI DocNodeServiceProvider_QueryInterface(IServiceProvider *iface, REFIID riid, void **ppv)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IServiceProvider(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
}
static ULONG WINAPI DocNodeServiceProvider_AddRef(IServiceProvider *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IServiceProvider(iface);
return htmldoc_addref(&This->basedoc);
return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
}
static ULONG WINAPI DocNodeServiceProvider_Release(IServiceProvider *iface)
{
HTMLDocumentNode *This = HTMLDocumentNode_from_IServiceProvider(iface);
return htmldoc_release(&This->basedoc);
return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
}
static HRESULT WINAPI DocNodeServiceProvider_QueryService(IServiceProvider *iface, REFGUID guidService,
......@@ -383,19 +383,19 @@ static inline HTMLDocumentObj *HTMLDocumentObj_from_IServiceProvider(IServicePro
static HRESULT WINAPI DocObjServiceProvider_QueryInterface(IServiceProvider *iface, REFIID riid, void **ppv)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IServiceProvider(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI DocObjServiceProvider_AddRef(IServiceProvider *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IServiceProvider(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI DocObjServiceProvider_Release(IServiceProvider *iface)
{
HTMLDocumentObj *This = HTMLDocumentObj_from_IServiceProvider(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI DocObjServiceProvider_QueryService(IServiceProvider *iface, REFGUID guidService,
......
......@@ -419,19 +419,19 @@ static inline HTMLDocumentObj *impl_from_IOleDocumentView(IOleDocumentView *ifac
static HRESULT WINAPI OleDocumentView_QueryInterface(IOleDocumentView *iface, REFIID riid, void **ppvObject)
{
HTMLDocumentObj *This = impl_from_IOleDocumentView(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppvObject);
return IUnknown_QueryInterface(This->outer_unk, riid, ppvObject);
}
static ULONG WINAPI OleDocumentView_AddRef(IOleDocumentView *iface)
{
HTMLDocumentObj *This = impl_from_IOleDocumentView(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI OleDocumentView_Release(IOleDocumentView *iface)
{
HTMLDocumentObj *This = impl_from_IOleDocumentView(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI OleDocumentView_SetInPlaceSite(IOleDocumentView *iface, IOleInPlaceSite *pIPSite)
......@@ -727,19 +727,19 @@ static inline HTMLDocumentObj *impl_from_IViewObjectEx(IViewObjectEx *iface)
static HRESULT WINAPI ViewObject_QueryInterface(IViewObjectEx *iface, REFIID riid, void **ppv)
{
HTMLDocumentObj *This = impl_from_IViewObjectEx(iface);
return htmldoc_query_interface(&This->basedoc, riid, ppv);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
}
static ULONG WINAPI ViewObject_AddRef(IViewObjectEx *iface)
{
HTMLDocumentObj *This = impl_from_IViewObjectEx(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI ViewObject_Release(IViewObjectEx *iface)
{
HTMLDocumentObj *This = impl_from_IViewObjectEx(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI ViewObject_Draw(IViewObjectEx *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect,
......@@ -894,13 +894,13 @@ static HRESULT WINAPI WindowForBindingUI_QueryInterface(IWindowForBindingUI *ifa
static ULONG WINAPI WindowForBindingUI_AddRef(IWindowForBindingUI *iface)
{
HTMLDocumentObj *This = impl_from_IWindowForBindingUI(iface);
return htmldoc_addref(&This->basedoc);
return IUnknown_AddRef(This->outer_unk);
}
static ULONG WINAPI WindowForBindingUI_Release(IWindowForBindingUI *iface)
{
HTMLDocumentObj *This = impl_from_IWindowForBindingUI(iface);
return htmldoc_release(&This->basedoc);
return IUnknown_Release(This->outer_unk);
}
static HRESULT WINAPI WindowForBindingUI_GetWindow(IWindowForBindingUI *iface, REFGUID rguidReason, HWND *phwnd)
......
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