Commit a95bfede authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Forward node ref calls to IHTMLDOMNode interface.

parent 4b2b441e
......@@ -80,18 +80,14 @@ static ULONG WINAPI HTMLAnchorElement_AddRef(IHTMLAnchorElement *iface)
{
HTMLAnchorElement *This = HTMLANCHOR_THIS(iface);
TRACE("(%p)\n", This);
return IHTMLDocument2_AddRef(HTMLDOC(This->element.node.doc));
return IHTMLDOMNode_AddRef(HTMLDOMNODE(&This->element.node));
}
static ULONG WINAPI HTMLAnchorElement_Release(IHTMLAnchorElement *iface)
{
HTMLAnchorElement *This = HTMLANCHOR_THIS(iface);
TRACE("(%p)\n", This);
return IHTMLDocument2_Release(HTMLDOC(This->element.node.doc));
return IHTMLDOMNode_Release(HTMLDOMNODE(&This->element.node));
}
static HRESULT WINAPI HTMLAnchorElement_GetTypeInfoCount(IHTMLAnchorElement *iface, UINT *pctinfo)
......
......@@ -94,18 +94,14 @@ static ULONG WINAPI HTMLBodyElement_AddRef(IHTMLBodyElement *iface)
{
HTMLBodyElement *This = HTMLBODY_THIS(iface);
TRACE("(%p)\n", This);
return IHTMLDocument2_AddRef(HTMLDOC(This->textcont.element.node.doc));
return IHTMLDOMNode_AddRef(HTMLDOMNODE(&This->textcont.element.node));
}
static ULONG WINAPI HTMLBodyElement_Release(IHTMLBodyElement *iface)
{
HTMLBodyElement *This = HTMLBODY_THIS(iface);
TRACE("(%p)\n", This);
return IHTMLDocument2_Release(HTMLDOC(This->textcont.element.node.doc));
return IHTMLDOMNode_Release(HTMLDOMNODE(&This->textcont.element.node));
}
static HRESULT WINAPI HTMLBodyElement_GetTypeInfoCount(IHTMLBodyElement *iface, UINT *pctinfo)
......
......@@ -80,22 +80,14 @@ static ULONG WINAPI HTMLElement_AddRef(IHTMLElement *iface)
{
HTMLElement *This = HTMLELEM_THIS(iface);
if(This->impl)
return IUnknown_AddRef(This->impl);
TRACE("(%p)\n", This);
return IHTMLDocument2_AddRef(HTMLDOC(This->node.doc));
return IHTMLDOMNode_AddRef(HTMLDOMNODE(&This->node));
}
static ULONG WINAPI HTMLElement_Release(IHTMLElement *iface)
{
HTMLElement *This = HTMLELEM_THIS(iface);
if(This->impl)
return IUnknown_Release(This->impl);
TRACE("(%p)\n", This);
return IHTMLDocument2_Release(HTMLDOC(This->node.doc));
return IHTMLDOMNode_Release(HTMLDOMNODE(&This->node));
}
static HRESULT WINAPI HTMLElement_GetTypeInfoCount(IHTMLElement *iface, UINT *pctinfo)
......
......@@ -82,18 +82,14 @@ static ULONG WINAPI HTMLInputElement_AddRef(IHTMLInputElement *iface)
{
HTMLInputElement *This = HTMLINPUT_THIS(iface);
TRACE("(%p)\n", This);
return IHTMLDocument2_AddRef(HTMLDOC(This->element.node.doc));
return IHTMLDOMNode_AddRef(HTMLDOMNODE(&This->element.node));
}
static ULONG WINAPI HTMLInputElement_Release(IHTMLInputElement *iface)
{
HTMLInputElement *This = HTMLINPUT_THIS(iface);
TRACE("(%p)\n", This);
return IHTMLDocument2_Release(HTMLDOC(This->element.node.doc));
return IHTMLDOMNode_Release(HTMLDOMNODE(&This->element.node));
}
static HRESULT WINAPI HTMLInputElement_GetTypeInfoCount(IHTMLInputElement *iface, UINT *pctinfo)
......
......@@ -59,10 +59,8 @@ static ULONG WINAPI HTMLDOMNode_AddRef(IHTMLDOMNode *iface)
{
HTMLDOMNode *This = HTMLDOMNODE_THIS(iface);
if(This->impl.unk)
return IUnknown_AddRef(This->impl.unk);
TRACE("(%p)\n", This);
return IHTMLDocument2_AddRef(HTMLDOC(This->doc));
}
......@@ -70,10 +68,8 @@ static ULONG WINAPI HTMLDOMNode_Release(IHTMLDOMNode *iface)
{
HTMLDOMNode *This = HTMLDOMNODE_THIS(iface);
if(This->impl.unk)
return IUnknown_Release(This->impl.unk);
TRACE("(%p)\n", This);
return IHTMLDocument2_Release(HTMLDOC(This->doc));
}
......
......@@ -82,18 +82,14 @@ static ULONG WINAPI HTMLSelectElement_AddRef(IHTMLSelectElement *iface)
{
HTMLSelectElement *This = HTMLSELECT_THIS(iface);
TRACE("(%p)\n", This);
return IHTMLDocument2_AddRef(HTMLDOC(This->element.node.doc));
return IHTMLDOMNode_AddRef(HTMLDOMNODE(&This->element.node));
}
static ULONG WINAPI HTMLSelectElement_Release(IHTMLSelectElement *iface)
{
HTMLSelectElement *This = HTMLSELECT_THIS(iface);
TRACE("(%p)\n", This);
return IHTMLDocument2_Release(HTMLDOC(This->element.node.doc));
return IHTMLDOMNode_Release(HTMLDOMNODE(&This->element.node));
}
static HRESULT WINAPI HTMLSelectElement_GetTypeInfoCount(IHTMLSelectElement *iface, UINT *pctinfo)
......
......@@ -82,18 +82,14 @@ static ULONG WINAPI HTMLTextAreaElement_AddRef(IHTMLTextAreaElement *iface)
{
HTMLTextAreaElement *This = HTMLTXTAREA_THIS(iface);
TRACE("(%p)\n", This);
return IHTMLDocument2_AddRef(HTMLDOC(This->element.node.doc));
return IHTMLDOMNode_AddRef(HTMLDOMNODE(&This->element.node));
}
static ULONG WINAPI HTMLTextAreaElement_Release(IHTMLTextAreaElement *iface)
{
HTMLTextAreaElement *This = HTMLTXTAREA_THIS(iface);
TRACE("(%p)\n", This);
return IHTMLDocument2_Release(HTMLDOC(This->element.node.doc));
return IHTMLDOMNode_Release(HTMLDOMNODE(&This->element.node));
}
static HRESULT WINAPI HTMLTextAreaElement_GetTypeInfoCount(IHTMLTextAreaElement *iface, UINT *pctinfo)
......
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