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

mshtml: IHTMLDocument2 iface handling clean up.

parent aec376dc
...@@ -41,19 +41,19 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml); ...@@ -41,19 +41,19 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static HRESULT WINAPI HlinkTarget_QueryInterface(IHlinkTarget *iface, REFIID riid, void **ppv) static HRESULT WINAPI HlinkTarget_QueryInterface(IHlinkTarget *iface, REFIID riid, void **ppv)
{ {
HTMLDocument *This = HLINKTRG_THIS(iface); HTMLDocument *This = HLINKTRG_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppv); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI HlinkTarget_AddRef(IHlinkTarget *iface) static ULONG WINAPI HlinkTarget_AddRef(IHlinkTarget *iface)
{ {
HTMLDocument *This = HLINKTRG_THIS(iface); HTMLDocument *This = HLINKTRG_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI HlinkTarget_Release(IHlinkTarget *iface) static ULONG WINAPI HlinkTarget_Release(IHlinkTarget *iface)
{ {
HTMLDocument *This = HLINKTRG_THIS(iface); HTMLDocument *This = HLINKTRG_THIS(iface);
return IHTMLDocument2_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI HlinkTarget_SetBrowseContext(IHlinkTarget *iface, IHlinkBrowseContext *pihlbc) static HRESULT WINAPI HlinkTarget_SetBrowseContext(IHlinkTarget *iface, IHlinkBrowseContext *pihlbc)
......
...@@ -39,32 +39,35 @@ ...@@ -39,32 +39,35 @@
WINE_DEFAULT_DEBUG_CHANNEL(mshtml); WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
#define HTMLDOC_THIS(iface) DEFINE_THIS(HTMLDocument, HTMLDocument2, iface) static inline HTMLDocument *impl_from_IHTMLDocument2(IHTMLDocument2 *iface)
{
return CONTAINING_RECORD(iface, HTMLDocument, IHTMLDocument2_iface);
}
static HRESULT WINAPI HTMLDocument_QueryInterface(IHTMLDocument2 *iface, REFIID riid, void **ppv) static HRESULT WINAPI HTMLDocument_QueryInterface(IHTMLDocument2 *iface, REFIID riid, void **ppv)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
return htmldoc_query_interface(This, riid, ppv); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI HTMLDocument_AddRef(IHTMLDocument2 *iface) static ULONG WINAPI HTMLDocument_AddRef(IHTMLDocument2 *iface)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
return htmldoc_addref(This); return htmldoc_addref(This);
} }
static ULONG WINAPI HTMLDocument_Release(IHTMLDocument2 *iface) static ULONG WINAPI HTMLDocument_Release(IHTMLDocument2 *iface)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
return htmldoc_release(This); return htmldoc_release(This);
} }
static HRESULT WINAPI HTMLDocument_GetTypeInfoCount(IHTMLDocument2 *iface, UINT *pctinfo) static HRESULT WINAPI HTMLDocument_GetTypeInfoCount(IHTMLDocument2 *iface, UINT *pctinfo)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
return IDispatchEx_GetTypeInfoCount(DISPATCHEX(This), pctinfo); return IDispatchEx_GetTypeInfoCount(DISPATCHEX(This), pctinfo);
} }
...@@ -72,7 +75,7 @@ static HRESULT WINAPI HTMLDocument_GetTypeInfoCount(IHTMLDocument2 *iface, UINT ...@@ -72,7 +75,7 @@ static HRESULT WINAPI HTMLDocument_GetTypeInfoCount(IHTMLDocument2 *iface, UINT
static HRESULT WINAPI HTMLDocument_GetTypeInfo(IHTMLDocument2 *iface, UINT iTInfo, static HRESULT WINAPI HTMLDocument_GetTypeInfo(IHTMLDocument2 *iface, UINT iTInfo,
LCID lcid, ITypeInfo **ppTInfo) LCID lcid, ITypeInfo **ppTInfo)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
return IDispatchEx_GetTypeInfo(DISPATCHEX(This), iTInfo, lcid, ppTInfo); return IDispatchEx_GetTypeInfo(DISPATCHEX(This), iTInfo, lcid, ppTInfo);
} }
...@@ -81,7 +84,7 @@ static HRESULT WINAPI HTMLDocument_GetIDsOfNames(IHTMLDocument2 *iface, REFIID r ...@@ -81,7 +84,7 @@ static HRESULT WINAPI HTMLDocument_GetIDsOfNames(IHTMLDocument2 *iface, REFIID r
LPOLESTR *rgszNames, UINT cNames, LPOLESTR *rgszNames, UINT cNames,
LCID lcid, DISPID *rgDispId) LCID lcid, DISPID *rgDispId)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
return IDispatchEx_GetIDsOfNames(DISPATCHEX(This), riid, rgszNames, cNames, lcid, rgDispId); return IDispatchEx_GetIDsOfNames(DISPATCHEX(This), riid, rgszNames, cNames, lcid, rgDispId);
} }
...@@ -90,7 +93,7 @@ static HRESULT WINAPI HTMLDocument_Invoke(IHTMLDocument2 *iface, DISPID dispIdMe ...@@ -90,7 +93,7 @@ static HRESULT WINAPI HTMLDocument_Invoke(IHTMLDocument2 *iface, DISPID dispIdMe
REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr) VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
return IDispatchEx_Invoke(DISPATCHEX(This), dispIdMember, riid, lcid, wFlags, pDispParams, return IDispatchEx_Invoke(DISPATCHEX(This), dispIdMember, riid, lcid, wFlags, pDispParams,
pVarResult, pExcepInfo, puArgErr); pVarResult, pExcepInfo, puArgErr);
...@@ -98,7 +101,7 @@ static HRESULT WINAPI HTMLDocument_Invoke(IHTMLDocument2 *iface, DISPID dispIdMe ...@@ -98,7 +101,7 @@ static HRESULT WINAPI HTMLDocument_Invoke(IHTMLDocument2 *iface, DISPID dispIdMe
static HRESULT WINAPI HTMLDocument_get_Script(IHTMLDocument2 *iface, IDispatch **p) static HRESULT WINAPI HTMLDocument_get_Script(IHTMLDocument2 *iface, IDispatch **p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
...@@ -109,7 +112,7 @@ static HRESULT WINAPI HTMLDocument_get_Script(IHTMLDocument2 *iface, IDispatch * ...@@ -109,7 +112,7 @@ static HRESULT WINAPI HTMLDocument_get_Script(IHTMLDocument2 *iface, IDispatch *
static HRESULT WINAPI HTMLDocument_get_all(IHTMLDocument2 *iface, IHTMLElementCollection **p) static HRESULT WINAPI HTMLDocument_get_all(IHTMLDocument2 *iface, IHTMLElementCollection **p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
nsIDOMElement *nselem = NULL; nsIDOMElement *nselem = NULL;
HTMLDOMNode *node; HTMLDOMNode *node;
nsresult nsres; nsresult nsres;
...@@ -142,7 +145,7 @@ static HRESULT WINAPI HTMLDocument_get_all(IHTMLDocument2 *iface, IHTMLElementCo ...@@ -142,7 +145,7 @@ static HRESULT WINAPI HTMLDocument_get_all(IHTMLDocument2 *iface, IHTMLElementCo
static HRESULT WINAPI HTMLDocument_get_body(IHTMLDocument2 *iface, IHTMLElement **p) static HRESULT WINAPI HTMLDocument_get_body(IHTMLDocument2 *iface, IHTMLElement **p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
nsIDOMHTMLElement *nsbody = NULL; nsIDOMHTMLElement *nsbody = NULL;
HTMLDOMNode *node; HTMLDOMNode *node;
HRESULT hres; HRESULT hres;
...@@ -174,14 +177,14 @@ static HRESULT WINAPI HTMLDocument_get_body(IHTMLDocument2 *iface, IHTMLElement ...@@ -174,14 +177,14 @@ static HRESULT WINAPI HTMLDocument_get_body(IHTMLDocument2 *iface, IHTMLElement
static HRESULT WINAPI HTMLDocument_get_activeElement(IHTMLDocument2 *iface, IHTMLElement **p) static HRESULT WINAPI HTMLDocument_get_activeElement(IHTMLDocument2 *iface, IHTMLElement **p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_images(IHTMLDocument2 *iface, IHTMLElementCollection **p) static HRESULT WINAPI HTMLDocument_get_images(IHTMLDocument2 *iface, IHTMLElementCollection **p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
nsIDOMHTMLCollection *nscoll = NULL; nsIDOMHTMLCollection *nscoll = NULL;
nsresult nsres; nsresult nsres;
...@@ -204,7 +207,7 @@ static HRESULT WINAPI HTMLDocument_get_images(IHTMLDocument2 *iface, IHTMLElemen ...@@ -204,7 +207,7 @@ static HRESULT WINAPI HTMLDocument_get_images(IHTMLDocument2 *iface, IHTMLElemen
} }
if(nscoll) { if(nscoll) {
*p = create_collection_from_htmlcol(This->doc_node, (IUnknown*)HTMLDOC(This), nscoll); *p = create_collection_from_htmlcol(This->doc_node, (IUnknown*)&This->IHTMLDocument2_iface, nscoll);
nsIDOMElement_Release(nscoll); nsIDOMElement_Release(nscoll);
} }
...@@ -213,7 +216,7 @@ static HRESULT WINAPI HTMLDocument_get_images(IHTMLDocument2 *iface, IHTMLElemen ...@@ -213,7 +216,7 @@ static HRESULT WINAPI HTMLDocument_get_images(IHTMLDocument2 *iface, IHTMLElemen
static HRESULT WINAPI HTMLDocument_get_applets(IHTMLDocument2 *iface, IHTMLElementCollection **p) static HRESULT WINAPI HTMLDocument_get_applets(IHTMLDocument2 *iface, IHTMLElementCollection **p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
nsIDOMHTMLCollection *nscoll = NULL; nsIDOMHTMLCollection *nscoll = NULL;
nsresult nsres; nsresult nsres;
...@@ -236,7 +239,7 @@ static HRESULT WINAPI HTMLDocument_get_applets(IHTMLDocument2 *iface, IHTMLEleme ...@@ -236,7 +239,7 @@ static HRESULT WINAPI HTMLDocument_get_applets(IHTMLDocument2 *iface, IHTMLEleme
} }
if(nscoll) { if(nscoll) {
*p = create_collection_from_htmlcol(This->doc_node, (IUnknown*)HTMLDOC(This), nscoll); *p = create_collection_from_htmlcol(This->doc_node, (IUnknown*)&This->IHTMLDocument2_iface, nscoll);
nsIDOMElement_Release(nscoll); nsIDOMElement_Release(nscoll);
} }
...@@ -245,7 +248,7 @@ static HRESULT WINAPI HTMLDocument_get_applets(IHTMLDocument2 *iface, IHTMLEleme ...@@ -245,7 +248,7 @@ static HRESULT WINAPI HTMLDocument_get_applets(IHTMLDocument2 *iface, IHTMLEleme
static HRESULT WINAPI HTMLDocument_get_links(IHTMLDocument2 *iface, IHTMLElementCollection **p) static HRESULT WINAPI HTMLDocument_get_links(IHTMLDocument2 *iface, IHTMLElementCollection **p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
nsIDOMHTMLCollection *nscoll = NULL; nsIDOMHTMLCollection *nscoll = NULL;
nsresult nsres; nsresult nsres;
...@@ -268,7 +271,7 @@ static HRESULT WINAPI HTMLDocument_get_links(IHTMLDocument2 *iface, IHTMLElement ...@@ -268,7 +271,7 @@ static HRESULT WINAPI HTMLDocument_get_links(IHTMLDocument2 *iface, IHTMLElement
} }
if(nscoll) { if(nscoll) {
*p = create_collection_from_htmlcol(This->doc_node, (IUnknown*)HTMLDOC(This), nscoll); *p = create_collection_from_htmlcol(This->doc_node, (IUnknown*)&This->IHTMLDocument2_iface, nscoll);
nsIDOMElement_Release(nscoll); nsIDOMElement_Release(nscoll);
} }
...@@ -277,7 +280,7 @@ static HRESULT WINAPI HTMLDocument_get_links(IHTMLDocument2 *iface, IHTMLElement ...@@ -277,7 +280,7 @@ static HRESULT WINAPI HTMLDocument_get_links(IHTMLDocument2 *iface, IHTMLElement
static HRESULT WINAPI HTMLDocument_get_forms(IHTMLDocument2 *iface, IHTMLElementCollection **p) static HRESULT WINAPI HTMLDocument_get_forms(IHTMLDocument2 *iface, IHTMLElementCollection **p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
nsIDOMHTMLCollection *nscoll = NULL; nsIDOMHTMLCollection *nscoll = NULL;
nsresult nsres; nsresult nsres;
...@@ -300,7 +303,7 @@ static HRESULT WINAPI HTMLDocument_get_forms(IHTMLDocument2 *iface, IHTMLElement ...@@ -300,7 +303,7 @@ static HRESULT WINAPI HTMLDocument_get_forms(IHTMLDocument2 *iface, IHTMLElement
} }
if(nscoll) { if(nscoll) {
*p = create_collection_from_htmlcol(This->doc_node, (IUnknown*)HTMLDOC(This), nscoll); *p = create_collection_from_htmlcol(This->doc_node, (IUnknown*)&This->IHTMLDocument2_iface, nscoll);
nsIDOMElement_Release(nscoll); nsIDOMElement_Release(nscoll);
} }
...@@ -309,7 +312,7 @@ static HRESULT WINAPI HTMLDocument_get_forms(IHTMLDocument2 *iface, IHTMLElement ...@@ -309,7 +312,7 @@ static HRESULT WINAPI HTMLDocument_get_forms(IHTMLDocument2 *iface, IHTMLElement
static HRESULT WINAPI HTMLDocument_get_anchors(IHTMLDocument2 *iface, IHTMLElementCollection **p) static HRESULT WINAPI HTMLDocument_get_anchors(IHTMLDocument2 *iface, IHTMLElementCollection **p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
nsIDOMHTMLCollection *nscoll = NULL; nsIDOMHTMLCollection *nscoll = NULL;
nsresult nsres; nsresult nsres;
...@@ -332,7 +335,7 @@ static HRESULT WINAPI HTMLDocument_get_anchors(IHTMLDocument2 *iface, IHTMLEleme ...@@ -332,7 +335,7 @@ static HRESULT WINAPI HTMLDocument_get_anchors(IHTMLDocument2 *iface, IHTMLEleme
} }
if(nscoll) { if(nscoll) {
*p = create_collection_from_htmlcol(This->doc_node, (IUnknown*)HTMLDOC(This), nscoll); *p = create_collection_from_htmlcol(This->doc_node, (IUnknown*)&This->IHTMLDocument2_iface, nscoll);
nsIDOMElement_Release(nscoll); nsIDOMElement_Release(nscoll);
} }
...@@ -341,7 +344,7 @@ static HRESULT WINAPI HTMLDocument_get_anchors(IHTMLDocument2 *iface, IHTMLEleme ...@@ -341,7 +344,7 @@ static HRESULT WINAPI HTMLDocument_get_anchors(IHTMLDocument2 *iface, IHTMLEleme
static HRESULT WINAPI HTMLDocument_put_title(IHTMLDocument2 *iface, BSTR v) static HRESULT WINAPI HTMLDocument_put_title(IHTMLDocument2 *iface, BSTR v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
nsAString nsstr; nsAString nsstr;
nsresult nsres; nsresult nsres;
...@@ -363,7 +366,7 @@ static HRESULT WINAPI HTMLDocument_put_title(IHTMLDocument2 *iface, BSTR v) ...@@ -363,7 +366,7 @@ static HRESULT WINAPI HTMLDocument_put_title(IHTMLDocument2 *iface, BSTR v)
static HRESULT WINAPI HTMLDocument_get_title(IHTMLDocument2 *iface, BSTR *p) static HRESULT WINAPI HTMLDocument_get_title(IHTMLDocument2 *iface, BSTR *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
const PRUnichar *ret; const PRUnichar *ret;
nsAString nsstr; nsAString nsstr;
nsresult nsres; nsresult nsres;
...@@ -394,21 +397,21 @@ static HRESULT WINAPI HTMLDocument_get_title(IHTMLDocument2 *iface, BSTR *p) ...@@ -394,21 +397,21 @@ static HRESULT WINAPI HTMLDocument_get_title(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI HTMLDocument_get_scripts(IHTMLDocument2 *iface, IHTMLElementCollection **p) static HRESULT WINAPI HTMLDocument_get_scripts(IHTMLDocument2 *iface, IHTMLElementCollection **p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_put_designMode(IHTMLDocument2 *iface, BSTR v) static HRESULT WINAPI HTMLDocument_put_designMode(IHTMLDocument2 *iface, BSTR v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%s)\n", This, debugstr_w(v)); FIXME("(%p)->(%s)\n", This, debugstr_w(v));
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_designMode(IHTMLDocument2 *iface, BSTR *p) static HRESULT WINAPI HTMLDocument_get_designMode(IHTMLDocument2 *iface, BSTR *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
static WCHAR szOff[] = {'O','f','f',0}; static WCHAR szOff[] = {'O','f','f',0};
FIXME("(%p)->(%p) always returning Off\n", This, p); FIXME("(%p)->(%p) always returning Off\n", This, p);
...@@ -422,7 +425,7 @@ static HRESULT WINAPI HTMLDocument_get_designMode(IHTMLDocument2 *iface, BSTR *p ...@@ -422,7 +425,7 @@ static HRESULT WINAPI HTMLDocument_get_designMode(IHTMLDocument2 *iface, BSTR *p
static HRESULT WINAPI HTMLDocument_get_selection(IHTMLDocument2 *iface, IHTMLSelectionObject **p) static HRESULT WINAPI HTMLDocument_get_selection(IHTMLDocument2 *iface, IHTMLSelectionObject **p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
nsISelection *nsselection; nsISelection *nsselection;
nsresult nsres; nsresult nsres;
...@@ -439,7 +442,7 @@ static HRESULT WINAPI HTMLDocument_get_selection(IHTMLDocument2 *iface, IHTMLSel ...@@ -439,7 +442,7 @@ static HRESULT WINAPI HTMLDocument_get_selection(IHTMLDocument2 *iface, IHTMLSel
static HRESULT WINAPI HTMLDocument_get_readyState(IHTMLDocument2 *iface, BSTR *p) static HRESULT WINAPI HTMLDocument_get_readyState(IHTMLDocument2 *iface, BSTR *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
static const WCHAR wszUninitialized[] = {'u','n','i','n','i','t','i','a','l','i','z','e','d',0}; static const WCHAR wszUninitialized[] = {'u','n','i','n','i','t','i','a','l','i','z','e','d',0};
static const WCHAR wszLoading[] = {'l','o','a','d','i','n','g',0}; static const WCHAR wszLoading[] = {'l','o','a','d','i','n','g',0};
...@@ -466,98 +469,98 @@ static HRESULT WINAPI HTMLDocument_get_readyState(IHTMLDocument2 *iface, BSTR *p ...@@ -466,98 +469,98 @@ static HRESULT WINAPI HTMLDocument_get_readyState(IHTMLDocument2 *iface, BSTR *p
static HRESULT WINAPI HTMLDocument_get_frames(IHTMLDocument2 *iface, IHTMLFramesCollection2 **p) static HRESULT WINAPI HTMLDocument_get_frames(IHTMLDocument2 *iface, IHTMLFramesCollection2 **p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_embeds(IHTMLDocument2 *iface, IHTMLElementCollection **p) static HRESULT WINAPI HTMLDocument_get_embeds(IHTMLDocument2 *iface, IHTMLElementCollection **p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_plugins(IHTMLDocument2 *iface, IHTMLElementCollection **p) static HRESULT WINAPI HTMLDocument_get_plugins(IHTMLDocument2 *iface, IHTMLElementCollection **p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_put_alinkColor(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_alinkColor(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)\n", This); FIXME("(%p)\n", This);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_alinkColor(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_alinkColor(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_put_bgColor(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_bgColor(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)\n", This); FIXME("(%p)\n", This);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_bgColor(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_bgColor(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_put_fgColor(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_fgColor(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)\n", This); FIXME("(%p)\n", This);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_fgColor(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_fgColor(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_put_linkColor(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_linkColor(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->()\n", This); FIXME("(%p)->()\n", This);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_linkColor(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_linkColor(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_put_vlinkColor(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_vlinkColor(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)\n", This); FIXME("(%p)\n", This);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_vlinkColor(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_vlinkColor(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_referrer(IHTMLDocument2 *iface, BSTR *p) static HRESULT WINAPI HTMLDocument_get_referrer(IHTMLDocument2 *iface, BSTR *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
...@@ -567,7 +570,7 @@ static HRESULT WINAPI HTMLDocument_get_referrer(IHTMLDocument2 *iface, BSTR *p) ...@@ -567,7 +570,7 @@ static HRESULT WINAPI HTMLDocument_get_referrer(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI HTMLDocument_get_location(IHTMLDocument2 *iface, IHTMLLocation **p) static HRESULT WINAPI HTMLDocument_get_location(IHTMLDocument2 *iface, IHTMLLocation **p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
...@@ -581,21 +584,21 @@ static HRESULT WINAPI HTMLDocument_get_location(IHTMLDocument2 *iface, IHTMLLoca ...@@ -581,21 +584,21 @@ static HRESULT WINAPI HTMLDocument_get_location(IHTMLDocument2 *iface, IHTMLLoca
static HRESULT WINAPI HTMLDocument_get_lastModified(IHTMLDocument2 *iface, BSTR *p) static HRESULT WINAPI HTMLDocument_get_lastModified(IHTMLDocument2 *iface, BSTR *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_put_URL(IHTMLDocument2 *iface, BSTR v) static HRESULT WINAPI HTMLDocument_put_URL(IHTMLDocument2 *iface, BSTR v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%s)\n", This, debugstr_w(v)); FIXME("(%p)->(%s)\n", This, debugstr_w(v));
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_URL(IHTMLDocument2 *iface, BSTR *p) static HRESULT WINAPI HTMLDocument_get_URL(IHTMLDocument2 *iface, BSTR *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
static const WCHAR about_blank_url[] = static const WCHAR about_blank_url[] =
{'a','b','o','u','t',':','b','l','a','n','k',0}; {'a','b','o','u','t',':','b','l','a','n','k',0};
...@@ -608,21 +611,21 @@ static HRESULT WINAPI HTMLDocument_get_URL(IHTMLDocument2 *iface, BSTR *p) ...@@ -608,21 +611,21 @@ static HRESULT WINAPI HTMLDocument_get_URL(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI HTMLDocument_put_domain(IHTMLDocument2 *iface, BSTR v) static HRESULT WINAPI HTMLDocument_put_domain(IHTMLDocument2 *iface, BSTR v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%s)\n", This, debugstr_w(v)); FIXME("(%p)->(%s)\n", This, debugstr_w(v));
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_domain(IHTMLDocument2 *iface, BSTR *p) static HRESULT WINAPI HTMLDocument_get_domain(IHTMLDocument2 *iface, BSTR *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_put_cookie(IHTMLDocument2 *iface, BSTR v) static HRESULT WINAPI HTMLDocument_put_cookie(IHTMLDocument2 *iface, BSTR v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
BOOL bret; BOOL bret;
TRACE("(%p)->(%s)\n", This, debugstr_w(v)); TRACE("(%p)->(%s)\n", This, debugstr_w(v));
...@@ -638,7 +641,7 @@ static HRESULT WINAPI HTMLDocument_put_cookie(IHTMLDocument2 *iface, BSTR v) ...@@ -638,7 +641,7 @@ static HRESULT WINAPI HTMLDocument_put_cookie(IHTMLDocument2 *iface, BSTR v)
static HRESULT WINAPI HTMLDocument_get_cookie(IHTMLDocument2 *iface, BSTR *p) static HRESULT WINAPI HTMLDocument_get_cookie(IHTMLDocument2 *iface, BSTR *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
DWORD size; DWORD size;
BOOL bret; BOOL bret;
...@@ -679,98 +682,98 @@ static HRESULT WINAPI HTMLDocument_get_cookie(IHTMLDocument2 *iface, BSTR *p) ...@@ -679,98 +682,98 @@ static HRESULT WINAPI HTMLDocument_get_cookie(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI HTMLDocument_put_expando(IHTMLDocument2 *iface, VARIANT_BOOL v) static HRESULT WINAPI HTMLDocument_put_expando(IHTMLDocument2 *iface, VARIANT_BOOL v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%x)\n", This, v); FIXME("(%p)->(%x)\n", This, v);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_expando(IHTMLDocument2 *iface, VARIANT_BOOL *p) static HRESULT WINAPI HTMLDocument_get_expando(IHTMLDocument2 *iface, VARIANT_BOOL *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_put_charset(IHTMLDocument2 *iface, BSTR v) static HRESULT WINAPI HTMLDocument_put_charset(IHTMLDocument2 *iface, BSTR v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%s)\n", This, debugstr_w(v)); FIXME("(%p)->(%s)\n", This, debugstr_w(v));
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_charset(IHTMLDocument2 *iface, BSTR *p) static HRESULT WINAPI HTMLDocument_get_charset(IHTMLDocument2 *iface, BSTR *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_put_defaultCharset(IHTMLDocument2 *iface, BSTR v) static HRESULT WINAPI HTMLDocument_put_defaultCharset(IHTMLDocument2 *iface, BSTR v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%s)\n", This, debugstr_w(v)); FIXME("(%p)->(%s)\n", This, debugstr_w(v));
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_defaultCharset(IHTMLDocument2 *iface, BSTR *p) static HRESULT WINAPI HTMLDocument_get_defaultCharset(IHTMLDocument2 *iface, BSTR *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_mimeType(IHTMLDocument2 *iface, BSTR *p) static HRESULT WINAPI HTMLDocument_get_mimeType(IHTMLDocument2 *iface, BSTR *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_fileSize(IHTMLDocument2 *iface, BSTR *p) static HRESULT WINAPI HTMLDocument_get_fileSize(IHTMLDocument2 *iface, BSTR *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_fileCreatedDate(IHTMLDocument2 *iface, BSTR *p) static HRESULT WINAPI HTMLDocument_get_fileCreatedDate(IHTMLDocument2 *iface, BSTR *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_fileModifiedDate(IHTMLDocument2 *iface, BSTR *p) static HRESULT WINAPI HTMLDocument_get_fileModifiedDate(IHTMLDocument2 *iface, BSTR *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_fileUpdatedDate(IHTMLDocument2 *iface, BSTR *p) static HRESULT WINAPI HTMLDocument_get_fileUpdatedDate(IHTMLDocument2 *iface, BSTR *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_security(IHTMLDocument2 *iface, BSTR *p) static HRESULT WINAPI HTMLDocument_get_security(IHTMLDocument2 *iface, BSTR *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_protocol(IHTMLDocument2 *iface, BSTR *p) static HRESULT WINAPI HTMLDocument_get_protocol(IHTMLDocument2 *iface, BSTR *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_nameProp(IHTMLDocument2 *iface, BSTR *p) static HRESULT WINAPI HTMLDocument_get_nameProp(IHTMLDocument2 *iface, BSTR *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -827,7 +830,7 @@ static HRESULT document_write(HTMLDocument *This, SAFEARRAY *psarray, BOOL ln) ...@@ -827,7 +830,7 @@ static HRESULT document_write(HTMLDocument *This, SAFEARRAY *psarray, BOOL ln)
static HRESULT WINAPI HTMLDocument_write(IHTMLDocument2 *iface, SAFEARRAY *psarray) static HRESULT WINAPI HTMLDocument_write(IHTMLDocument2 *iface, SAFEARRAY *psarray)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%p)\n", iface, psarray); TRACE("(%p)->(%p)\n", iface, psarray);
...@@ -836,7 +839,7 @@ static HRESULT WINAPI HTMLDocument_write(IHTMLDocument2 *iface, SAFEARRAY *psarr ...@@ -836,7 +839,7 @@ static HRESULT WINAPI HTMLDocument_write(IHTMLDocument2 *iface, SAFEARRAY *psarr
static HRESULT WINAPI HTMLDocument_writeln(IHTMLDocument2 *iface, SAFEARRAY *psarray) static HRESULT WINAPI HTMLDocument_writeln(IHTMLDocument2 *iface, SAFEARRAY *psarray)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%p)\n", This, psarray); TRACE("(%p)->(%p)\n", This, psarray);
...@@ -846,7 +849,7 @@ static HRESULT WINAPI HTMLDocument_writeln(IHTMLDocument2 *iface, SAFEARRAY *psa ...@@ -846,7 +849,7 @@ static HRESULT WINAPI HTMLDocument_writeln(IHTMLDocument2 *iface, SAFEARRAY *psa
static HRESULT WINAPI HTMLDocument_open(IHTMLDocument2 *iface, BSTR url, VARIANT name, static HRESULT WINAPI HTMLDocument_open(IHTMLDocument2 *iface, BSTR url, VARIANT name,
VARIANT features, VARIANT replace, IDispatch **pomWindowResult) VARIANT features, VARIANT replace, IDispatch **pomWindowResult)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
nsresult nsres; nsresult nsres;
static const WCHAR text_htmlW[] = {'t','e','x','t','/','h','t','m','l',0}; static const WCHAR text_htmlW[] = {'t','e','x','t','/','h','t','m','l',0};
...@@ -876,7 +879,7 @@ static HRESULT WINAPI HTMLDocument_open(IHTMLDocument2 *iface, BSTR url, VARIANT ...@@ -876,7 +879,7 @@ static HRESULT WINAPI HTMLDocument_open(IHTMLDocument2 *iface, BSTR url, VARIANT
static HRESULT WINAPI HTMLDocument_close(IHTMLDocument2 *iface) static HRESULT WINAPI HTMLDocument_close(IHTMLDocument2 *iface)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
nsresult nsres; nsresult nsres;
TRACE("(%p)\n", This); TRACE("(%p)\n", This);
...@@ -897,7 +900,7 @@ static HRESULT WINAPI HTMLDocument_close(IHTMLDocument2 *iface) ...@@ -897,7 +900,7 @@ static HRESULT WINAPI HTMLDocument_close(IHTMLDocument2 *iface)
static HRESULT WINAPI HTMLDocument_clear(IHTMLDocument2 *iface) static HRESULT WINAPI HTMLDocument_clear(IHTMLDocument2 *iface)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
nsIDOMNSHTMLDocument *nsdoc; nsIDOMNSHTMLDocument *nsdoc;
nsresult nsres; nsresult nsres;
...@@ -922,7 +925,7 @@ static HRESULT WINAPI HTMLDocument_clear(IHTMLDocument2 *iface) ...@@ -922,7 +925,7 @@ static HRESULT WINAPI HTMLDocument_clear(IHTMLDocument2 *iface)
static HRESULT WINAPI HTMLDocument_queryCommandSupported(IHTMLDocument2 *iface, BSTR cmdID, static HRESULT WINAPI HTMLDocument_queryCommandSupported(IHTMLDocument2 *iface, BSTR cmdID,
VARIANT_BOOL *pfRet) VARIANT_BOOL *pfRet)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%s %p)\n", This, debugstr_w(cmdID), pfRet); FIXME("(%p)->(%s %p)\n", This, debugstr_w(cmdID), pfRet);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -930,7 +933,7 @@ static HRESULT WINAPI HTMLDocument_queryCommandSupported(IHTMLDocument2 *iface, ...@@ -930,7 +933,7 @@ static HRESULT WINAPI HTMLDocument_queryCommandSupported(IHTMLDocument2 *iface,
static HRESULT WINAPI HTMLDocument_queryCommandEnabled(IHTMLDocument2 *iface, BSTR cmdID, static HRESULT WINAPI HTMLDocument_queryCommandEnabled(IHTMLDocument2 *iface, BSTR cmdID,
VARIANT_BOOL *pfRet) VARIANT_BOOL *pfRet)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%s %p)\n", This, debugstr_w(cmdID), pfRet); FIXME("(%p)->(%s %p)\n", This, debugstr_w(cmdID), pfRet);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -938,7 +941,7 @@ static HRESULT WINAPI HTMLDocument_queryCommandEnabled(IHTMLDocument2 *iface, BS ...@@ -938,7 +941,7 @@ static HRESULT WINAPI HTMLDocument_queryCommandEnabled(IHTMLDocument2 *iface, BS
static HRESULT WINAPI HTMLDocument_queryCommandState(IHTMLDocument2 *iface, BSTR cmdID, static HRESULT WINAPI HTMLDocument_queryCommandState(IHTMLDocument2 *iface, BSTR cmdID,
VARIANT_BOOL *pfRet) VARIANT_BOOL *pfRet)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%s %p)\n", This, debugstr_w(cmdID), pfRet); FIXME("(%p)->(%s %p)\n", This, debugstr_w(cmdID), pfRet);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -946,7 +949,7 @@ static HRESULT WINAPI HTMLDocument_queryCommandState(IHTMLDocument2 *iface, BSTR ...@@ -946,7 +949,7 @@ static HRESULT WINAPI HTMLDocument_queryCommandState(IHTMLDocument2 *iface, BSTR
static HRESULT WINAPI HTMLDocument_queryCommandIndeterm(IHTMLDocument2 *iface, BSTR cmdID, static HRESULT WINAPI HTMLDocument_queryCommandIndeterm(IHTMLDocument2 *iface, BSTR cmdID,
VARIANT_BOOL *pfRet) VARIANT_BOOL *pfRet)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%s %p)\n", This, debugstr_w(cmdID), pfRet); FIXME("(%p)->(%s %p)\n", This, debugstr_w(cmdID), pfRet);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -954,7 +957,7 @@ static HRESULT WINAPI HTMLDocument_queryCommandIndeterm(IHTMLDocument2 *iface, B ...@@ -954,7 +957,7 @@ static HRESULT WINAPI HTMLDocument_queryCommandIndeterm(IHTMLDocument2 *iface, B
static HRESULT WINAPI HTMLDocument_queryCommandText(IHTMLDocument2 *iface, BSTR cmdID, static HRESULT WINAPI HTMLDocument_queryCommandText(IHTMLDocument2 *iface, BSTR cmdID,
BSTR *pfRet) BSTR *pfRet)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%s %p)\n", This, debugstr_w(cmdID), pfRet); FIXME("(%p)->(%s %p)\n", This, debugstr_w(cmdID), pfRet);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -962,7 +965,7 @@ static HRESULT WINAPI HTMLDocument_queryCommandText(IHTMLDocument2 *iface, BSTR ...@@ -962,7 +965,7 @@ static HRESULT WINAPI HTMLDocument_queryCommandText(IHTMLDocument2 *iface, BSTR
static HRESULT WINAPI HTMLDocument_queryCommandValue(IHTMLDocument2 *iface, BSTR cmdID, static HRESULT WINAPI HTMLDocument_queryCommandValue(IHTMLDocument2 *iface, BSTR cmdID,
VARIANT *pfRet) VARIANT *pfRet)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%s %p)\n", This, debugstr_w(cmdID), pfRet); FIXME("(%p)->(%s %p)\n", This, debugstr_w(cmdID), pfRet);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -970,7 +973,7 @@ static HRESULT WINAPI HTMLDocument_queryCommandValue(IHTMLDocument2 *iface, BSTR ...@@ -970,7 +973,7 @@ static HRESULT WINAPI HTMLDocument_queryCommandValue(IHTMLDocument2 *iface, BSTR
static HRESULT WINAPI HTMLDocument_execCommand(IHTMLDocument2 *iface, BSTR cmdID, static HRESULT WINAPI HTMLDocument_execCommand(IHTMLDocument2 *iface, BSTR cmdID,
VARIANT_BOOL showUI, VARIANT value, VARIANT_BOOL *pfRet) VARIANT_BOOL showUI, VARIANT value, VARIANT_BOOL *pfRet)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%s %x %p)\n", This, debugstr_w(cmdID), showUI, pfRet); FIXME("(%p)->(%s %x %p)\n", This, debugstr_w(cmdID), showUI, pfRet);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -978,7 +981,7 @@ static HRESULT WINAPI HTMLDocument_execCommand(IHTMLDocument2 *iface, BSTR cmdID ...@@ -978,7 +981,7 @@ static HRESULT WINAPI HTMLDocument_execCommand(IHTMLDocument2 *iface, BSTR cmdID
static HRESULT WINAPI HTMLDocument_execCommandShowHelp(IHTMLDocument2 *iface, BSTR cmdID, static HRESULT WINAPI HTMLDocument_execCommandShowHelp(IHTMLDocument2 *iface, BSTR cmdID,
VARIANT_BOOL *pfRet) VARIANT_BOOL *pfRet)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%s %p)\n", This, debugstr_w(cmdID), pfRet); FIXME("(%p)->(%s %p)\n", This, debugstr_w(cmdID), pfRet);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -986,7 +989,7 @@ static HRESULT WINAPI HTMLDocument_execCommandShowHelp(IHTMLDocument2 *iface, BS ...@@ -986,7 +989,7 @@ static HRESULT WINAPI HTMLDocument_execCommandShowHelp(IHTMLDocument2 *iface, BS
static HRESULT WINAPI HTMLDocument_createElement(IHTMLDocument2 *iface, BSTR eTag, static HRESULT WINAPI HTMLDocument_createElement(IHTMLDocument2 *iface, BSTR eTag,
IHTMLElement **newElem) IHTMLElement **newElem)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
nsIDOMHTMLElement *nselem; nsIDOMHTMLElement *nselem;
HTMLElement *elem; HTMLElement *elem;
HRESULT hres; HRESULT hres;
...@@ -1009,21 +1012,21 @@ static HRESULT WINAPI HTMLDocument_createElement(IHTMLDocument2 *iface, BSTR eTa ...@@ -1009,21 +1012,21 @@ static HRESULT WINAPI HTMLDocument_createElement(IHTMLDocument2 *iface, BSTR eTa
static HRESULT WINAPI HTMLDocument_put_onhelp(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_onhelp(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)\n", This); FIXME("(%p)\n", This);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_onhelp(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_onhelp(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_put_onclick(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_onclick(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%s)\n", This, debugstr_variant(&v)); TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
...@@ -1032,7 +1035,7 @@ static HRESULT WINAPI HTMLDocument_put_onclick(IHTMLDocument2 *iface, VARIANT v) ...@@ -1032,7 +1035,7 @@ static HRESULT WINAPI HTMLDocument_put_onclick(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI HTMLDocument_get_onclick(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_onclick(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
...@@ -1041,21 +1044,21 @@ static HRESULT WINAPI HTMLDocument_get_onclick(IHTMLDocument2 *iface, VARIANT *p ...@@ -1041,21 +1044,21 @@ static HRESULT WINAPI HTMLDocument_get_onclick(IHTMLDocument2 *iface, VARIANT *p
static HRESULT WINAPI HTMLDocument_put_ondblclick(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_ondblclick(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)\n", This); FIXME("(%p)\n", This);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_ondblclick(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_ondblclick(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_put_onkeyup(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_onkeyup(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%s)\n", This, debugstr_variant(&v)); TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
...@@ -1064,7 +1067,7 @@ static HRESULT WINAPI HTMLDocument_put_onkeyup(IHTMLDocument2 *iface, VARIANT v) ...@@ -1064,7 +1067,7 @@ static HRESULT WINAPI HTMLDocument_put_onkeyup(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI HTMLDocument_get_onkeyup(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_onkeyup(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
...@@ -1073,7 +1076,7 @@ static HRESULT WINAPI HTMLDocument_get_onkeyup(IHTMLDocument2 *iface, VARIANT *p ...@@ -1073,7 +1076,7 @@ static HRESULT WINAPI HTMLDocument_get_onkeyup(IHTMLDocument2 *iface, VARIANT *p
static HRESULT WINAPI HTMLDocument_put_onkeydown(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_onkeydown(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%s)\n", This, debugstr_variant(&v)); TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
...@@ -1082,7 +1085,7 @@ static HRESULT WINAPI HTMLDocument_put_onkeydown(IHTMLDocument2 *iface, VARIANT ...@@ -1082,7 +1085,7 @@ static HRESULT WINAPI HTMLDocument_put_onkeydown(IHTMLDocument2 *iface, VARIANT
static HRESULT WINAPI HTMLDocument_get_onkeydown(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_onkeydown(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
...@@ -1091,21 +1094,21 @@ static HRESULT WINAPI HTMLDocument_get_onkeydown(IHTMLDocument2 *iface, VARIANT ...@@ -1091,21 +1094,21 @@ static HRESULT WINAPI HTMLDocument_get_onkeydown(IHTMLDocument2 *iface, VARIANT
static HRESULT WINAPI HTMLDocument_put_onkeypress(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_onkeypress(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)\n", This); FIXME("(%p)\n", This);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_onkeypress(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_onkeypress(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_put_onmouseup(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_onmouseup(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%s)\n", This, debugstr_variant(&v)); TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
...@@ -1114,7 +1117,7 @@ static HRESULT WINAPI HTMLDocument_put_onmouseup(IHTMLDocument2 *iface, VARIANT ...@@ -1114,7 +1117,7 @@ static HRESULT WINAPI HTMLDocument_put_onmouseup(IHTMLDocument2 *iface, VARIANT
static HRESULT WINAPI HTMLDocument_get_onmouseup(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_onmouseup(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
...@@ -1123,7 +1126,7 @@ static HRESULT WINAPI HTMLDocument_get_onmouseup(IHTMLDocument2 *iface, VARIANT ...@@ -1123,7 +1126,7 @@ static HRESULT WINAPI HTMLDocument_get_onmouseup(IHTMLDocument2 *iface, VARIANT
static HRESULT WINAPI HTMLDocument_put_onmousedown(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_onmousedown(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->()\n", This); TRACE("(%p)->()\n", This);
...@@ -1132,7 +1135,7 @@ static HRESULT WINAPI HTMLDocument_put_onmousedown(IHTMLDocument2 *iface, VARIAN ...@@ -1132,7 +1135,7 @@ static HRESULT WINAPI HTMLDocument_put_onmousedown(IHTMLDocument2 *iface, VARIAN
static HRESULT WINAPI HTMLDocument_get_onmousedown(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_onmousedown(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
...@@ -1141,21 +1144,21 @@ static HRESULT WINAPI HTMLDocument_get_onmousedown(IHTMLDocument2 *iface, VARIAN ...@@ -1141,21 +1144,21 @@ static HRESULT WINAPI HTMLDocument_get_onmousedown(IHTMLDocument2 *iface, VARIAN
static HRESULT WINAPI HTMLDocument_put_onmousemove(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_onmousemove(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)\n", This); FIXME("(%p)\n", This);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_onmousemove(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_onmousemove(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_put_onmouseout(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_onmouseout(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%s)\n", This, debugstr_variant(&v)); TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
...@@ -1164,7 +1167,7 @@ static HRESULT WINAPI HTMLDocument_put_onmouseout(IHTMLDocument2 *iface, VARIANT ...@@ -1164,7 +1167,7 @@ static HRESULT WINAPI HTMLDocument_put_onmouseout(IHTMLDocument2 *iface, VARIANT
static HRESULT WINAPI HTMLDocument_get_onmouseout(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_onmouseout(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
...@@ -1173,7 +1176,7 @@ static HRESULT WINAPI HTMLDocument_get_onmouseout(IHTMLDocument2 *iface, VARIANT ...@@ -1173,7 +1176,7 @@ static HRESULT WINAPI HTMLDocument_get_onmouseout(IHTMLDocument2 *iface, VARIANT
static HRESULT WINAPI HTMLDocument_put_onmouseover(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_onmouseover(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)\n", This); TRACE("(%p)\n", This);
...@@ -1182,7 +1185,7 @@ static HRESULT WINAPI HTMLDocument_put_onmouseover(IHTMLDocument2 *iface, VARIAN ...@@ -1182,7 +1185,7 @@ static HRESULT WINAPI HTMLDocument_put_onmouseover(IHTMLDocument2 *iface, VARIAN
static HRESULT WINAPI HTMLDocument_get_onmouseover(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_onmouseover(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
...@@ -1191,7 +1194,7 @@ static HRESULT WINAPI HTMLDocument_get_onmouseover(IHTMLDocument2 *iface, VARIAN ...@@ -1191,7 +1194,7 @@ static HRESULT WINAPI HTMLDocument_get_onmouseover(IHTMLDocument2 *iface, VARIAN
static HRESULT WINAPI HTMLDocument_put_onreadystatechange(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_onreadystatechange(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%s)\n", This, debugstr_variant(&v)); TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
...@@ -1200,7 +1203,7 @@ static HRESULT WINAPI HTMLDocument_put_onreadystatechange(IHTMLDocument2 *iface, ...@@ -1200,7 +1203,7 @@ static HRESULT WINAPI HTMLDocument_put_onreadystatechange(IHTMLDocument2 *iface,
static HRESULT WINAPI HTMLDocument_get_onreadystatechange(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_onreadystatechange(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
...@@ -1209,49 +1212,49 @@ static HRESULT WINAPI HTMLDocument_get_onreadystatechange(IHTMLDocument2 *iface, ...@@ -1209,49 +1212,49 @@ static HRESULT WINAPI HTMLDocument_get_onreadystatechange(IHTMLDocument2 *iface,
static HRESULT WINAPI HTMLDocument_put_onafterupdate(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_onafterupdate(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)\n", This); FIXME("(%p)\n", This);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_onafterupdate(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_onafterupdate(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_put_onrowexit(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_onrowexit(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)\n", This); FIXME("(%p)\n", This);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_onrowexit(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_onrowexit(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_put_onrowenter(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_onrowenter(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)\n", This); FIXME("(%p)\n", This);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_onrowenter(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_onrowenter(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_put_ondragstart(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_ondragstart(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%s)\n", This, debugstr_variant(&v)); TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
...@@ -1260,7 +1263,7 @@ static HRESULT WINAPI HTMLDocument_put_ondragstart(IHTMLDocument2 *iface, VARIAN ...@@ -1260,7 +1263,7 @@ static HRESULT WINAPI HTMLDocument_put_ondragstart(IHTMLDocument2 *iface, VARIAN
static HRESULT WINAPI HTMLDocument_get_ondragstart(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_ondragstart(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
...@@ -1269,7 +1272,7 @@ static HRESULT WINAPI HTMLDocument_get_ondragstart(IHTMLDocument2 *iface, VARIAN ...@@ -1269,7 +1272,7 @@ static HRESULT WINAPI HTMLDocument_get_ondragstart(IHTMLDocument2 *iface, VARIAN
static HRESULT WINAPI HTMLDocument_put_onselectstart(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_onselectstart(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%s)\n", This, debugstr_variant(&v)); TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
...@@ -1278,7 +1281,7 @@ static HRESULT WINAPI HTMLDocument_put_onselectstart(IHTMLDocument2 *iface, VARI ...@@ -1278,7 +1281,7 @@ static HRESULT WINAPI HTMLDocument_put_onselectstart(IHTMLDocument2 *iface, VARI
static HRESULT WINAPI HTMLDocument_get_onselectstart(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_onselectstart(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
...@@ -1288,14 +1291,14 @@ static HRESULT WINAPI HTMLDocument_get_onselectstart(IHTMLDocument2 *iface, VARI ...@@ -1288,14 +1291,14 @@ static HRESULT WINAPI HTMLDocument_get_onselectstart(IHTMLDocument2 *iface, VARI
static HRESULT WINAPI HTMLDocument_elementFromPoint(IHTMLDocument2 *iface, LONG x, LONG y, static HRESULT WINAPI HTMLDocument_elementFromPoint(IHTMLDocument2 *iface, LONG x, LONG y,
IHTMLElement **elementHit) IHTMLElement **elementHit)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%d %d %p)\n", This, x, y, elementHit); FIXME("(%p)->(%d %d %p)\n", This, x, y, elementHit);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_parentWindow(IHTMLDocument2 *iface, IHTMLWindow2 **p) static HRESULT WINAPI HTMLDocument_get_parentWindow(IHTMLDocument2 *iface, IHTMLWindow2 **p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
...@@ -1307,7 +1310,7 @@ static HRESULT WINAPI HTMLDocument_get_parentWindow(IHTMLDocument2 *iface, IHTML ...@@ -1307,7 +1310,7 @@ static HRESULT WINAPI HTMLDocument_get_parentWindow(IHTMLDocument2 *iface, IHTML
static HRESULT WINAPI HTMLDocument_get_styleSheets(IHTMLDocument2 *iface, static HRESULT WINAPI HTMLDocument_get_styleSheets(IHTMLDocument2 *iface,
IHTMLStyleSheetsCollection **p) IHTMLStyleSheetsCollection **p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
nsIDOMStyleSheetList *nsstylelist; nsIDOMStyleSheetList *nsstylelist;
nsIDOMDocumentStyle *nsdocstyle; nsIDOMDocumentStyle *nsdocstyle;
nsresult nsres; nsresult nsres;
...@@ -1337,35 +1340,35 @@ static HRESULT WINAPI HTMLDocument_get_styleSheets(IHTMLDocument2 *iface, ...@@ -1337,35 +1340,35 @@ static HRESULT WINAPI HTMLDocument_get_styleSheets(IHTMLDocument2 *iface,
static HRESULT WINAPI HTMLDocument_put_onbeforeupdate(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_onbeforeupdate(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)\n", This); FIXME("(%p)\n", This);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_onbeforeupdate(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_onbeforeupdate(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_put_onerrorupdate(IHTMLDocument2 *iface, VARIANT v) static HRESULT WINAPI HTMLDocument_put_onerrorupdate(IHTMLDocument2 *iface, VARIANT v)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)\n", This); FIXME("(%p)\n", This);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_get_onerrorupdate(IHTMLDocument2 *iface, VARIANT *p) static HRESULT WINAPI HTMLDocument_get_onerrorupdate(IHTMLDocument2 *iface, VARIANT *p)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, p); FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI HTMLDocument_toString(IHTMLDocument2 *iface, BSTR *String) static HRESULT WINAPI HTMLDocument_toString(IHTMLDocument2 *iface, BSTR *String)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%p)\n", This, String); FIXME("(%p)->(%p)\n", This, String);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -1373,7 +1376,7 @@ static HRESULT WINAPI HTMLDocument_toString(IHTMLDocument2 *iface, BSTR *String) ...@@ -1373,7 +1376,7 @@ static HRESULT WINAPI HTMLDocument_toString(IHTMLDocument2 *iface, BSTR *String)
static HRESULT WINAPI HTMLDocument_createStyleSheet(IHTMLDocument2 *iface, BSTR bstrHref, static HRESULT WINAPI HTMLDocument_createStyleSheet(IHTMLDocument2 *iface, BSTR bstrHref,
LONG lIndex, IHTMLStyleSheet **ppnewStyleSheet) LONG lIndex, IHTMLStyleSheet **ppnewStyleSheet)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2(iface);
FIXME("(%p)->(%s %d %p) semi-stub\n", This, debugstr_w(bstrHref), lIndex, ppnewStyleSheet); FIXME("(%p)->(%s %d %p) semi-stub\n", This, debugstr_w(bstrHref), lIndex, ppnewStyleSheet);
...@@ -1502,32 +1505,30 @@ static const IHTMLDocument2Vtbl HTMLDocumentVtbl = { ...@@ -1502,32 +1505,30 @@ static const IHTMLDocument2Vtbl HTMLDocumentVtbl = {
static void HTMLDocument_on_advise(IUnknown *iface, cp_static_data_t *cp) static void HTMLDocument_on_advise(IUnknown *iface, cp_static_data_t *cp)
{ {
HTMLDocument *This = HTMLDOC_THIS(iface); HTMLDocument *This = impl_from_IHTMLDocument2((IHTMLDocument2*)iface);
if(This->window) if(This->window)
update_cp_events(This->window, &This->doc_node->node.event_target, cp, This->doc_node->node.nsnode); update_cp_events(This->window, &This->doc_node->node.event_target, cp, This->doc_node->node.nsnode);
} }
#undef HTMLDOC_THIS
#define SUPPINFO_THIS(iface) DEFINE_THIS(HTMLDocument, SupportErrorInfo, iface) #define SUPPINFO_THIS(iface) DEFINE_THIS(HTMLDocument, SupportErrorInfo, iface)
static HRESULT WINAPI SupportErrorInfo_QueryInterface(ISupportErrorInfo *iface, REFIID riid, void **ppv) static HRESULT WINAPI SupportErrorInfo_QueryInterface(ISupportErrorInfo *iface, REFIID riid, void **ppv)
{ {
HTMLDocument *This = SUPPINFO_THIS(iface); HTMLDocument *This = SUPPINFO_THIS(iface);
return IHTMLDocument_QueryInterface(HTMLDOC(This), riid, ppv); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI SupportErrorInfo_AddRef(ISupportErrorInfo *iface) static ULONG WINAPI SupportErrorInfo_AddRef(ISupportErrorInfo *iface)
{ {
HTMLDocument *This = SUPPINFO_THIS(iface); HTMLDocument *This = SUPPINFO_THIS(iface);
return IHTMLDocument_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI SupportErrorInfo_Release(ISupportErrorInfo *iface) static ULONG WINAPI SupportErrorInfo_Release(ISupportErrorInfo *iface)
{ {
HTMLDocument *This = SUPPINFO_THIS(iface); HTMLDocument *This = SUPPINFO_THIS(iface);
return IHTMLDocument_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI SupportErrorInfo_InterfaceSupportsErrorInfo(ISupportErrorInfo *iface, REFIID riid) static HRESULT WINAPI SupportErrorInfo_InterfaceSupportsErrorInfo(ISupportErrorInfo *iface, REFIID riid)
...@@ -1549,21 +1550,21 @@ static HRESULT WINAPI DocDispatchEx_QueryInterface(IDispatchEx *iface, REFIID ri ...@@ -1549,21 +1550,21 @@ static HRESULT WINAPI DocDispatchEx_QueryInterface(IDispatchEx *iface, REFIID ri
{ {
HTMLDocument *This = DISPEX_THIS(iface); HTMLDocument *This = DISPEX_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppv); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI DocDispatchEx_AddRef(IDispatchEx *iface) static ULONG WINAPI DocDispatchEx_AddRef(IDispatchEx *iface)
{ {
HTMLDocument *This = DISPEX_THIS(iface); HTMLDocument *This = DISPEX_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI DocDispatchEx_Release(IDispatchEx *iface) static ULONG WINAPI DocDispatchEx_Release(IDispatchEx *iface)
{ {
HTMLDocument *This = DISPEX_THIS(iface); HTMLDocument *This = DISPEX_THIS(iface);
return IHTMLDocument2_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI DocDispatchEx_GetTypeInfoCount(IDispatchEx *iface, UINT *pctinfo) static HRESULT WINAPI DocDispatchEx_GetTypeInfoCount(IDispatchEx *iface, UINT *pctinfo)
...@@ -1703,7 +1704,7 @@ static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv) ...@@ -1703,7 +1704,7 @@ static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv)
if(IsEqualGUID(&IID_IUnknown, riid)) { if(IsEqualGUID(&IID_IUnknown, riid)) {
TRACE("(%p)->(IID_IUnknown, %p)\n", This, ppv); TRACE("(%p)->(IID_IUnknown, %p)\n", This, ppv);
*ppv = HTMLDOC(This); *ppv = &This->IHTMLDocument2_iface;
}else if(IsEqualGUID(&IID_IDispatch, riid)) { }else if(IsEqualGUID(&IID_IDispatch, riid)) {
TRACE("(%p)->(IID_IDispatch, %p)\n", This, ppv); TRACE("(%p)->(IID_IDispatch, %p)\n", This, ppv);
*ppv = DISPATCHEX(This); *ppv = DISPATCHEX(This);
...@@ -1712,10 +1713,10 @@ static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv) ...@@ -1712,10 +1713,10 @@ static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv)
*ppv = DISPATCHEX(This); *ppv = DISPATCHEX(This);
}else if(IsEqualGUID(&IID_IHTMLDocument, riid)) { }else if(IsEqualGUID(&IID_IHTMLDocument, riid)) {
TRACE("(%p)->(IID_IHTMLDocument, %p)\n", This, ppv); TRACE("(%p)->(IID_IHTMLDocument, %p)\n", This, ppv);
*ppv = HTMLDOC(This); *ppv = &This->IHTMLDocument2_iface;
}else if(IsEqualGUID(&IID_IHTMLDocument2, riid)) { }else if(IsEqualGUID(&IID_IHTMLDocument2, riid)) {
TRACE("(%p)->(IID_IHTMLDocument2, %p)\n", This, ppv); TRACE("(%p)->(IID_IHTMLDocument2, %p)\n", This, ppv);
*ppv = HTMLDOC(This); *ppv = &This->IHTMLDocument2_iface;
}else if(IsEqualGUID(&IID_IHTMLDocument3, riid)) { }else if(IsEqualGUID(&IID_IHTMLDocument3, riid)) {
TRACE("(%p)->(IID_IHTMLDocument3, %p)\n", This, ppv); TRACE("(%p)->(IID_IHTMLDocument3, %p)\n", This, ppv);
*ppv = HTMLDOC3(This); *ppv = HTMLDOC3(This);
...@@ -1790,7 +1791,7 @@ static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv) ...@@ -1790,7 +1791,7 @@ static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv)
*ppv = PERSTRINIT(This); *ppv = PERSTRINIT(This);
}else if(IsEqualGUID(&DIID_DispHTMLDocument, riid)) { }else if(IsEqualGUID(&DIID_DispHTMLDocument, riid)) {
TRACE("(%p)->(DIID_DispHTMLDocument %p)\n", This, ppv); TRACE("(%p)->(DIID_DispHTMLDocument %p)\n", This, ppv);
*ppv = HTMLDOC(This); *ppv = &This->IHTMLDocument2_iface;
}else if(IsEqualGUID(&IID_ISupportErrorInfo, riid)) { }else if(IsEqualGUID(&IID_ISupportErrorInfo, riid)) {
TRACE("(%p)->(IID_ISupportErrorInfo %p)\n", This, ppv); TRACE("(%p)->(IID_ISupportErrorInfo %p)\n", This, ppv);
*ppv = SUPPERRINFO(This); *ppv = SUPPERRINFO(This);
...@@ -1834,7 +1835,7 @@ static cp_static_data_t HTMLDocumentEvents_data = { HTMLDocumentEvents_tid, HTML ...@@ -1834,7 +1835,7 @@ static cp_static_data_t HTMLDocumentEvents_data = { HTMLDocumentEvents_tid, HTML
static void init_doc(HTMLDocument *doc, IUnknown *unk_impl, IDispatchEx *dispex) static void init_doc(HTMLDocument *doc, IUnknown *unk_impl, IDispatchEx *dispex)
{ {
doc->lpHTMLDocument2Vtbl = &HTMLDocumentVtbl; doc->IHTMLDocument2_iface.lpVtbl = &HTMLDocumentVtbl;
doc->lpIDispatchExVtbl = &DocDispatchExVtbl; doc->lpIDispatchExVtbl = &DocDispatchExVtbl;
doc->lpSupportErrorInfoVtbl = &SupportErrorInfoVtbl; doc->lpSupportErrorInfoVtbl = &SupportErrorInfoVtbl;
...@@ -1852,7 +1853,7 @@ static void init_doc(HTMLDocument *doc, IUnknown *unk_impl, IDispatchEx *dispex) ...@@ -1852,7 +1853,7 @@ static void init_doc(HTMLDocument *doc, IUnknown *unk_impl, IDispatchEx *dispex)
HTMLDocument_Service_Init(doc); HTMLDocument_Service_Init(doc);
HTMLDocument_Hlink_Init(doc); HTMLDocument_Hlink_Init(doc);
ConnectionPointContainer_Init(&doc->cp_container, (IUnknown*)HTMLDOC(doc)); ConnectionPointContainer_Init(&doc->cp_container, (IUnknown*)&doc->IHTMLDocument2_iface);
ConnectionPoint_Init(&doc->cp_dispatch, &doc->cp_container, &IID_IDispatch, NULL); ConnectionPoint_Init(&doc->cp_dispatch, &doc->cp_container, &IID_IDispatch, NULL);
ConnectionPoint_Init(&doc->cp_propnotif, &doc->cp_container, &IID_IPropertyNotifySink, NULL); ConnectionPoint_Init(&doc->cp_propnotif, &doc->cp_container, &IID_IPropertyNotifySink, NULL);
ConnectionPoint_Init(&doc->cp_htmldocevents, &doc->cp_container, &DIID_HTMLDocumentEvents, &HTMLDocumentEvents_data); ConnectionPoint_Init(&doc->cp_htmldocevents, &doc->cp_container, &DIID_HTMLDocumentEvents, &HTMLDocumentEvents_data);
...@@ -2089,7 +2090,7 @@ static ULONG WINAPI CustomDoc_Release(ICustomDoc *iface) ...@@ -2089,7 +2090,7 @@ static ULONG WINAPI CustomDoc_Release(ICustomDoc *iface)
if(!ref) { if(!ref) {
if(This->basedoc.doc_node) { if(This->basedoc.doc_node) {
This->basedoc.doc_node->basedoc.doc_obj = NULL; This->basedoc.doc_node->basedoc.doc_obj = NULL;
IHTMLDocument2_Release(HTMLDOC(&This->basedoc.doc_node->basedoc)); htmldoc_release(&This->basedoc.doc_node->basedoc);
} }
if(This->basedoc.window) { if(This->basedoc.window) {
This->basedoc.window->doc_obj = NULL; This->basedoc.window->doc_obj = NULL;
...@@ -2224,7 +2225,7 @@ HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject) ...@@ -2224,7 +2225,7 @@ HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject)
if(nswindow) if(nswindow)
nsIDOMWindow_Release(nswindow); nsIDOMWindow_Release(nswindow);
if(FAILED(hres)) { if(FAILED(hres)) {
IHTMLDocument_Release(HTMLDOC(&doc->basedoc)); htmldoc_release(&doc->basedoc);
return hres; return hres;
} }
......
...@@ -41,19 +41,19 @@ static HRESULT WINAPI HTMLDocument3_QueryInterface(IHTMLDocument3 *iface, ...@@ -41,19 +41,19 @@ static HRESULT WINAPI HTMLDocument3_QueryInterface(IHTMLDocument3 *iface,
REFIID riid, void **ppv) REFIID riid, void **ppv)
{ {
HTMLDocument *This = HTMLDOC3_THIS(iface); HTMLDocument *This = HTMLDOC3_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppv); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI HTMLDocument3_AddRef(IHTMLDocument3 *iface) static ULONG WINAPI HTMLDocument3_AddRef(IHTMLDocument3 *iface)
{ {
HTMLDocument *This = HTMLDOC3_THIS(iface); HTMLDocument *This = HTMLDOC3_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI HTMLDocument3_Release(IHTMLDocument3 *iface) static ULONG WINAPI HTMLDocument3_Release(IHTMLDocument3 *iface)
{ {
HTMLDocument *This = HTMLDOC3_THIS(iface); HTMLDocument *This = HTMLDOC3_THIS(iface);
return IHTMLDocument2_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI HTMLDocument3_GetTypeInfoCount(IHTMLDocument3 *iface, UINT *pctinfo) static HRESULT WINAPI HTMLDocument3_GetTypeInfoCount(IHTMLDocument3 *iface, UINT *pctinfo)
...@@ -372,7 +372,7 @@ static HRESULT WINAPI HTMLDocument3_createDocumentFragment(IHTMLDocument3 *iface ...@@ -372,7 +372,7 @@ static HRESULT WINAPI HTMLDocument3_createDocumentFragment(IHTMLDocument3 *iface
if(FAILED(hres)) if(FAILED(hres))
return hres; return hres;
*ppNewDoc = HTMLDOC(&docnode->basedoc); *ppNewDoc = &docnode->basedoc.IHTMLDocument2_iface;
return S_OK; return S_OK;
} }
...@@ -640,19 +640,19 @@ static HRESULT WINAPI HTMLDocument4_QueryInterface(IHTMLDocument4 *iface, ...@@ -640,19 +640,19 @@ static HRESULT WINAPI HTMLDocument4_QueryInterface(IHTMLDocument4 *iface,
REFIID riid, void **ppv) REFIID riid, void **ppv)
{ {
HTMLDocument *This = HTMLDOC4_THIS(iface); HTMLDocument *This = HTMLDOC4_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppv); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI HTMLDocument4_AddRef(IHTMLDocument4 *iface) static ULONG WINAPI HTMLDocument4_AddRef(IHTMLDocument4 *iface)
{ {
HTMLDocument *This = HTMLDOC4_THIS(iface); HTMLDocument *This = HTMLDOC4_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI HTMLDocument4_Release(IHTMLDocument4 *iface) static ULONG WINAPI HTMLDocument4_Release(IHTMLDocument4 *iface)
{ {
HTMLDocument *This = HTMLDOC4_THIS(iface); HTMLDocument *This = HTMLDOC4_THIS(iface);
return IHTMLDocument2_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI HTMLDocument4_GetTypeInfoCount(IHTMLDocument4 *iface, UINT *pctinfo) static HRESULT WINAPI HTMLDocument4_GetTypeInfoCount(IHTMLDocument4 *iface, UINT *pctinfo)
......
...@@ -40,19 +40,19 @@ static HRESULT WINAPI HTMLDocument5_QueryInterface(IHTMLDocument5 *iface, ...@@ -40,19 +40,19 @@ static HRESULT WINAPI HTMLDocument5_QueryInterface(IHTMLDocument5 *iface,
REFIID riid, void **ppv) REFIID riid, void **ppv)
{ {
HTMLDocument *This = HTMLDOC5_THIS(iface); HTMLDocument *This = HTMLDOC5_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppv); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI HTMLDocument5_AddRef(IHTMLDocument5 *iface) static ULONG WINAPI HTMLDocument5_AddRef(IHTMLDocument5 *iface)
{ {
HTMLDocument *This = HTMLDOC5_THIS(iface); HTMLDocument *This = HTMLDOC5_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI HTMLDocument5_Release(IHTMLDocument5 *iface) static ULONG WINAPI HTMLDocument5_Release(IHTMLDocument5 *iface)
{ {
HTMLDocument *This = HTMLDOC5_THIS(iface); HTMLDocument *This = HTMLDOC5_THIS(iface);
return IHTMLDocument2_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI HTMLDocument5_GetTypeInfoCount(IHTMLDocument5 *iface, UINT *pctinfo) static HRESULT WINAPI HTMLDocument5_GetTypeInfoCount(IHTMLDocument5 *iface, UINT *pctinfo)
...@@ -308,19 +308,19 @@ static HRESULT WINAPI HTMLDocument6_QueryInterface(IHTMLDocument6 *iface, ...@@ -308,19 +308,19 @@ static HRESULT WINAPI HTMLDocument6_QueryInterface(IHTMLDocument6 *iface,
REFIID riid, void **ppv) REFIID riid, void **ppv)
{ {
HTMLDocument *This = HTMLDOC6_THIS(iface); HTMLDocument *This = HTMLDOC6_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppv); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI HTMLDocument6_AddRef(IHTMLDocument6 *iface) static ULONG WINAPI HTMLDocument6_AddRef(IHTMLDocument6 *iface)
{ {
HTMLDocument *This = HTMLDOC6_THIS(iface); HTMLDocument *This = HTMLDOC6_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI HTMLDocument6_Release(IHTMLDocument6 *iface) static ULONG WINAPI HTMLDocument6_Release(IHTMLDocument6 *iface)
{ {
HTMLDocument *This = HTMLDOC6_THIS(iface); HTMLDocument *This = HTMLDOC6_THIS(iface);
return IHTMLDocument2_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI HTMLDocument6_GetTypeInfoCount(IHTMLDocument6 *iface, UINT *pctinfo) static HRESULT WINAPI HTMLDocument6_GetTypeInfoCount(IHTMLDocument6 *iface, UINT *pctinfo)
......
...@@ -651,7 +651,7 @@ static HRESULT WINAPI HTMLElement_get_document(IHTMLElement *iface, IDispatch ** ...@@ -651,7 +651,7 @@ static HRESULT WINAPI HTMLElement_get_document(IHTMLElement *iface, IDispatch **
if(This->node.vtbl->get_document) if(This->node.vtbl->get_document)
return This->node.vtbl->get_document(&This->node, p); return This->node.vtbl->get_document(&This->node, p);
*p = (IDispatch*)HTMLDOC(&This->node.doc->basedoc); *p = (IDispatch*)&This->node.doc->basedoc.IHTMLDocument2_iface;
IDispatch_AddRef(*p); IDispatch_AddRef(*p);
return S_OK; return S_OK;
} }
......
...@@ -963,7 +963,7 @@ void fire_event(HTMLDocumentNode *doc, eventid_t eid, BOOL set_event, nsIDOMNode ...@@ -963,7 +963,7 @@ void fire_event(HTMLDocumentNode *doc, eventid_t eid, BOOL set_event, nsIDOMNode
} }
call_event_handlers(doc, event_obj, doc->node.event_target, &doc->basedoc.cp_container, eid, call_event_handlers(doc, event_obj, doc->node.event_target, &doc->basedoc.cp_container, eid,
(IDispatch*)HTMLDOC(&doc->basedoc)); (IDispatch*)&doc->basedoc.IHTMLDocument2_iface);
break; break;
default: default:
......
...@@ -205,7 +205,7 @@ static HRESULT HTMLFrameElement_get_document(HTMLDOMNode *iface, IDispatch **p) ...@@ -205,7 +205,7 @@ static HRESULT HTMLFrameElement_get_document(HTMLDOMNode *iface, IDispatch **p)
return S_OK; return S_OK;
} }
*p = (IDispatch*)HTMLDOC(&This->framebase.content_window->doc->basedoc); *p = (IDispatch*)&This->framebase.content_window->doc->basedoc.IHTMLDocument2_iface;
IDispatch_AddRef(*p); IDispatch_AddRef(*p);
return S_OK; return S_OK;
} }
......
...@@ -478,7 +478,7 @@ static HRESULT WINAPI HTMLFrameBase2_get_readyState(IHTMLFrameBase2 *iface, BSTR ...@@ -478,7 +478,7 @@ static HRESULT WINAPI HTMLFrameBase2_get_readyState(IHTMLFrameBase2 *iface, BSTR
return E_FAIL; return E_FAIL;
} }
return IHTMLDocument2_get_readyState(HTMLDOC(&This->content_window->doc->basedoc), p); return IHTMLDocument2_get_readyState(&This->content_window->doc->basedoc.IHTMLDocument2_iface, p);
} }
static HRESULT WINAPI HTMLFrameBase2_put_allowTransparency(IHTMLFrameBase2 *iface, VARIANT_BOOL v) static HRESULT WINAPI HTMLFrameBase2_put_allowTransparency(IHTMLFrameBase2 *iface, VARIANT_BOOL v)
......
...@@ -183,7 +183,7 @@ static HRESULT HTMLIFrame_get_document(HTMLDOMNode *iface, IDispatch **p) ...@@ -183,7 +183,7 @@ static HRESULT HTMLIFrame_get_document(HTMLDOMNode *iface, IDispatch **p)
return S_OK; return S_OK;
} }
*p = (IDispatch*)HTMLDOC(&This->framebase.content_window->doc->basedoc); *p = (IDispatch*)&This->framebase.content_window->doc->basedoc.IHTMLDocument2_iface;
IDispatch_AddRef(*p); IDispatch_AddRef(*p);
return S_OK; return S_OK;
} }
......
...@@ -896,7 +896,7 @@ static HRESULT WINAPI HTMLDOMNode2_get_ownerDocument(IHTMLDOMNode2 *iface, IDisp ...@@ -896,7 +896,7 @@ static HRESULT WINAPI HTMLDOMNode2_get_ownerDocument(IHTMLDOMNode2 *iface, IDisp
if(This == &This->doc->node) { if(This == &This->doc->node) {
*p = NULL; *p = NULL;
}else { }else {
*p = (IDispatch*)HTMLDOC(&This->doc->basedoc); *p = (IDispatch*)&This->doc->basedoc.IHTMLDocument2_iface;
IDispatch_AddRef(*p); IDispatch_AddRef(*p);
} }
return S_OK; return S_OK;
......
...@@ -990,7 +990,7 @@ static HRESULT WINAPI HTMLWindow2_get_document(IHTMLWindow2 *iface, IHTMLDocumen ...@@ -990,7 +990,7 @@ static HRESULT WINAPI HTMLWindow2_get_document(IHTMLWindow2 *iface, IHTMLDocumen
if(This->doc) { if(This->doc) {
/* FIXME: We should return a wrapper object here */ /* FIXME: We should return a wrapper object here */
*p = HTMLDOC(&This->doc->basedoc); *p = &This->doc->basedoc.IHTMLDocument2_iface;
IHTMLDocument2_AddRef(*p); IHTMLDocument2_AddRef(*p);
}else { }else {
*p = NULL; *p = NULL;
......
...@@ -342,7 +342,7 @@ struct ConnectionPoint { ...@@ -342,7 +342,7 @@ struct ConnectionPoint {
}; };
struct HTMLDocument { struct HTMLDocument {
const IHTMLDocument2Vtbl *lpHTMLDocument2Vtbl; IHTMLDocument2 IHTMLDocument2_iface;
const IHTMLDocument3Vtbl *lpHTMLDocument3Vtbl; const IHTMLDocument3Vtbl *lpHTMLDocument3Vtbl;
const IHTMLDocument4Vtbl *lpHTMLDocument4Vtbl; const IHTMLDocument4Vtbl *lpHTMLDocument4Vtbl;
const IHTMLDocument5Vtbl *lpHTMLDocument5Vtbl; const IHTMLDocument5Vtbl *lpHTMLDocument5Vtbl;
...@@ -626,7 +626,6 @@ struct HTMLDocumentNode { ...@@ -626,7 +626,6 @@ struct HTMLDocumentNode {
#define HTMLWINDOW3(x) ((IHTMLWindow3*) &(x)->lpHTMLWindow3Vtbl) #define HTMLWINDOW3(x) ((IHTMLWindow3*) &(x)->lpHTMLWindow3Vtbl)
#define HTMLWINDOW4(x) ((IHTMLWindow4*) &(x)->lpHTMLWindow4Vtbl) #define HTMLWINDOW4(x) ((IHTMLWindow4*) &(x)->lpHTMLWindow4Vtbl)
#define HTMLDOC(x) ((IHTMLDocument2*) &(x)->lpHTMLDocument2Vtbl)
#define HTMLDOC3(x) ((IHTMLDocument3*) &(x)->lpHTMLDocument3Vtbl) #define HTMLDOC3(x) ((IHTMLDocument3*) &(x)->lpHTMLDocument3Vtbl)
#define HTMLDOC4(x) ((IHTMLDocument4*) &(x)->lpHTMLDocument4Vtbl) #define HTMLDOC4(x) ((IHTMLDocument4*) &(x)->lpHTMLDocument4Vtbl)
#define HTMLDOC5(x) ((IHTMLDocument5*) &(x)->lpHTMLDocument5Vtbl) #define HTMLDOC5(x) ((IHTMLDocument5*) &(x)->lpHTMLDocument5Vtbl)
......
...@@ -737,19 +737,19 @@ static const cmdtable_t base_cmds[] = { ...@@ -737,19 +737,19 @@ static const cmdtable_t base_cmds[] = {
static HRESULT WINAPI OleCommandTarget_QueryInterface(IOleCommandTarget *iface, REFIID riid, void **ppv) static HRESULT WINAPI OleCommandTarget_QueryInterface(IOleCommandTarget *iface, REFIID riid, void **ppv)
{ {
HTMLDocument *This = CMDTARGET_THIS(iface); HTMLDocument *This = CMDTARGET_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppv); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI OleCommandTarget_AddRef(IOleCommandTarget *iface) static ULONG WINAPI OleCommandTarget_AddRef(IOleCommandTarget *iface)
{ {
HTMLDocument *This = CMDTARGET_THIS(iface); HTMLDocument *This = CMDTARGET_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI OleCommandTarget_Release(IOleCommandTarget *iface) static ULONG WINAPI OleCommandTarget_Release(IOleCommandTarget *iface)
{ {
HTMLDocument *This = CMDTARGET_THIS(iface); HTMLDocument *This = CMDTARGET_THIS(iface);
return IHTMLDocument_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT query_from_table(HTMLDocument *This, const cmdtable_t *cmdtable, OLECMD *cmd) static HRESULT query_from_table(HTMLDocument *This, const cmdtable_t *cmdtable, OLECMD *cmd)
......
...@@ -47,22 +47,22 @@ DEFINE_OLEGUID(CGID_DocHostCmdPriv, 0x000214D4L, 0, 0); ...@@ -47,22 +47,22 @@ DEFINE_OLEGUID(CGID_DocHostCmdPriv, 0x000214D4L, 0, 0);
#define OLEOBJ_THIS(iface) DEFINE_THIS(HTMLDocument, OleObject, iface) #define OLEOBJ_THIS(iface) DEFINE_THIS(HTMLDocument, OleObject, iface)
static HRESULT WINAPI OleObject_QueryInterface(IOleObject *iface, REFIID riid, void **ppvObject) static HRESULT WINAPI OleObject_QueryInterface(IOleObject *iface, REFIID riid, void **ppv)
{ {
HTMLDocument *This = OLEOBJ_THIS(iface); HTMLDocument *This = OLEOBJ_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppvObject); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI OleObject_AddRef(IOleObject *iface) static ULONG WINAPI OleObject_AddRef(IOleObject *iface)
{ {
HTMLDocument *This = OLEOBJ_THIS(iface); HTMLDocument *This = OLEOBJ_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI OleObject_Release(IOleObject *iface) static ULONG WINAPI OleObject_Release(IOleObject *iface)
{ {
HTMLDocument *This = OLEOBJ_THIS(iface); HTMLDocument *This = OLEOBJ_THIS(iface);
return IHTMLDocument2_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static void update_hostinfo(HTMLDocumentObj *This, DOCHOSTUIINFO *hostinfo) static void update_hostinfo(HTMLDocumentObj *This, DOCHOSTUIINFO *hostinfo)
...@@ -491,22 +491,22 @@ static const IOleObjectVtbl OleObjectVtbl = { ...@@ -491,22 +491,22 @@ static const IOleObjectVtbl OleObjectVtbl = {
#define OLEDOC_THIS(iface) DEFINE_THIS(HTMLDocument, OleDocument, iface) #define OLEDOC_THIS(iface) DEFINE_THIS(HTMLDocument, OleDocument, iface)
static HRESULT WINAPI OleDocument_QueryInterface(IOleDocument *iface, REFIID riid, void **ppvObject) static HRESULT WINAPI OleDocument_QueryInterface(IOleDocument *iface, REFIID riid, void **ppv)
{ {
HTMLDocument *This = OLEDOC_THIS(iface); HTMLDocument *This = OLEDOC_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppvObject); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI OleDocument_AddRef(IOleDocument *iface) static ULONG WINAPI OleDocument_AddRef(IOleDocument *iface)
{ {
HTMLDocument *This = OLEDOC_THIS(iface); HTMLDocument *This = OLEDOC_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI OleDocument_Release(IOleDocument *iface) static ULONG WINAPI OleDocument_Release(IOleDocument *iface)
{ {
HTMLDocument *This = OLEDOC_THIS(iface); HTMLDocument *This = OLEDOC_THIS(iface);
return IHTMLDocument2_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI OleDocument_CreateView(IOleDocument *iface, IOleInPlaceSite *pIPSite, IStream *pstm, static HRESULT WINAPI OleDocument_CreateView(IOleDocument *iface, IOleInPlaceSite *pIPSite, IStream *pstm,
...@@ -576,19 +576,19 @@ static const IOleDocumentVtbl OleDocumentVtbl = { ...@@ -576,19 +576,19 @@ static const IOleDocumentVtbl OleDocumentVtbl = {
static HRESULT WINAPI OleControl_QueryInterface(IOleControl *iface, REFIID riid, void **ppv) static HRESULT WINAPI OleControl_QueryInterface(IOleControl *iface, REFIID riid, void **ppv)
{ {
HTMLDocument *This = CONTROL_THIS(iface); HTMLDocument *This = CONTROL_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppv); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI OleControl_AddRef(IOleControl *iface) static ULONG WINAPI OleControl_AddRef(IOleControl *iface)
{ {
HTMLDocument *This = CONTROL_THIS(iface); HTMLDocument *This = CONTROL_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI OleControl_Release(IOleControl *iface) static ULONG WINAPI OleControl_Release(IOleControl *iface)
{ {
HTMLDocument *This = CONTROL_THIS(iface); HTMLDocument *This = CONTROL_THIS(iface);
return IHTMLDocument_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI OleControl_GetControlInfo(IOleControl *iface, CONTROLINFO *pCI) static HRESULT WINAPI OleControl_GetControlInfo(IOleControl *iface, CONTROLINFO *pCI)
...@@ -755,22 +755,22 @@ static const IOleControlVtbl OleControlVtbl = { ...@@ -755,22 +755,22 @@ static const IOleControlVtbl OleControlVtbl = {
#define OBJSITE_THIS(iface) DEFINE_THIS(HTMLDocument, ObjectWithSite, iface) #define OBJSITE_THIS(iface) DEFINE_THIS(HTMLDocument, ObjectWithSite, iface)
static HRESULT WINAPI ObjectWithSite_QueryInterface(IObjectWithSite *iface, REFIID riid, void **ppvObject) static HRESULT WINAPI ObjectWithSite_QueryInterface(IObjectWithSite *iface, REFIID riid, void **ppv)
{ {
HTMLDocument *This = OBJSITE_THIS(iface); HTMLDocument *This = OBJSITE_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppvObject); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI ObjectWithSite_AddRef(IObjectWithSite *iface) static ULONG WINAPI ObjectWithSite_AddRef(IObjectWithSite *iface)
{ {
HTMLDocument *This = OBJSITE_THIS(iface); HTMLDocument *This = OBJSITE_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI ObjectWithSite_Release(IObjectWithSite *iface) static ULONG WINAPI ObjectWithSite_Release(IObjectWithSite *iface)
{ {
HTMLDocument *This = OBJSITE_THIS(iface); HTMLDocument *This = OBJSITE_THIS(iface);
return IHTMLDocument2_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI ObjectWithSite_SetSite(IObjectWithSite *iface, IUnknown *pUnkSite) static HRESULT WINAPI ObjectWithSite_SetSite(IObjectWithSite *iface, IUnknown *pUnkSite)
...@@ -805,19 +805,19 @@ static inline HTMLDocument *impl_from_IOleContainer(IOleContainer *iface) ...@@ -805,19 +805,19 @@ static inline HTMLDocument *impl_from_IOleContainer(IOleContainer *iface)
static HRESULT WINAPI OleContainer_QueryInterface(IOleContainer *iface, REFIID riid, void **ppv) static HRESULT WINAPI OleContainer_QueryInterface(IOleContainer *iface, REFIID riid, void **ppv)
{ {
HTMLDocument *This = impl_from_IOleContainer(iface); HTMLDocument *This = impl_from_IOleContainer(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppv); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI OleContainer_AddRef(IOleContainer *iface) static ULONG WINAPI OleContainer_AddRef(IOleContainer *iface)
{ {
HTMLDocument *This = impl_from_IOleContainer(iface); HTMLDocument *This = impl_from_IOleContainer(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI OleContainer_Release(IOleContainer *iface) static ULONG WINAPI OleContainer_Release(IOleContainer *iface)
{ {
HTMLDocument *This = impl_from_IOleContainer(iface); HTMLDocument *This = impl_from_IOleContainer(iface);
return IHTMLDocument2_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI OleContainer_ParseDisplayName(IOleContainer *iface, IBindCtx *pbc, LPOLESTR pszDisplayName, static HRESULT WINAPI OleContainer_ParseDisplayName(IOleContainer *iface, IBindCtx *pbc, LPOLESTR pszDisplayName,
......
...@@ -41,22 +41,22 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml); ...@@ -41,22 +41,22 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
#define ACTOBJ_THIS(iface) DEFINE_THIS(HTMLDocument, OleInPlaceActiveObject, iface) #define ACTOBJ_THIS(iface) DEFINE_THIS(HTMLDocument, OleInPlaceActiveObject, iface)
static HRESULT WINAPI OleInPlaceActiveObject_QueryInterface(IOleInPlaceActiveObject *iface, REFIID riid, void **ppvObject) static HRESULT WINAPI OleInPlaceActiveObject_QueryInterface(IOleInPlaceActiveObject *iface, REFIID riid, void **ppv)
{ {
HTMLDocument *This = ACTOBJ_THIS(iface); HTMLDocument *This = ACTOBJ_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppvObject); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI OleInPlaceActiveObject_AddRef(IOleInPlaceActiveObject *iface) static ULONG WINAPI OleInPlaceActiveObject_AddRef(IOleInPlaceActiveObject *iface)
{ {
HTMLDocument *This = ACTOBJ_THIS(iface); HTMLDocument *This = ACTOBJ_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI OleInPlaceActiveObject_Release(IOleInPlaceActiveObject *iface) static ULONG WINAPI OleInPlaceActiveObject_Release(IOleInPlaceActiveObject *iface)
{ {
HTMLDocument *This = ACTOBJ_THIS(iface); HTMLDocument *This = ACTOBJ_THIS(iface);
return IHTMLDocument2_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI OleInPlaceActiveObject_GetWindow(IOleInPlaceActiveObject *iface, HWND *phwnd) static HRESULT WINAPI OleInPlaceActiveObject_GetWindow(IOleInPlaceActiveObject *iface, HWND *phwnd)
...@@ -148,22 +148,22 @@ static const IOleInPlaceActiveObjectVtbl OleInPlaceActiveObjectVtbl = { ...@@ -148,22 +148,22 @@ static const IOleInPlaceActiveObjectVtbl OleInPlaceActiveObjectVtbl = {
#define OLEINPLACEWND_THIS(iface) DEFINE_THIS(HTMLDocument, OleInPlaceObjectWindowless, iface) #define OLEINPLACEWND_THIS(iface) DEFINE_THIS(HTMLDocument, OleInPlaceObjectWindowless, iface)
static HRESULT WINAPI OleInPlaceObjectWindowless_QueryInterface(IOleInPlaceObjectWindowless *iface, static HRESULT WINAPI OleInPlaceObjectWindowless_QueryInterface(IOleInPlaceObjectWindowless *iface,
REFIID riid, void **ppvObject) REFIID riid, void **ppv)
{ {
HTMLDocument *This = OLEINPLACEWND_THIS(iface); HTMLDocument *This = OLEINPLACEWND_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppvObject); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI OleInPlaceObjectWindowless_AddRef(IOleInPlaceObjectWindowless *iface) static ULONG WINAPI OleInPlaceObjectWindowless_AddRef(IOleInPlaceObjectWindowless *iface)
{ {
HTMLDocument *This = OLEINPLACEWND_THIS(iface); HTMLDocument *This = OLEINPLACEWND_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI OleInPlaceObjectWindowless_Release(IOleInPlaceObjectWindowless *iface) static ULONG WINAPI OleInPlaceObjectWindowless_Release(IOleInPlaceObjectWindowless *iface)
{ {
HTMLDocument *This = OLEINPLACEWND_THIS(iface); HTMLDocument *This = OLEINPLACEWND_THIS(iface);
return IHTMLDocument2_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI OleInPlaceObjectWindowless_GetWindow(IOleInPlaceObjectWindowless *iface, static HRESULT WINAPI OleInPlaceObjectWindowless_GetWindow(IOleInPlaceObjectWindowless *iface,
......
...@@ -341,23 +341,22 @@ static HRESULT get_doc_string(HTMLDocumentNode *This, char **str) ...@@ -341,23 +341,22 @@ static HRESULT get_doc_string(HTMLDocumentNode *This, char **str)
#define PERSISTMON_THIS(iface) DEFINE_THIS(HTMLDocument, PersistMoniker, iface) #define PERSISTMON_THIS(iface) DEFINE_THIS(HTMLDocument, PersistMoniker, iface)
static HRESULT WINAPI PersistMoniker_QueryInterface(IPersistMoniker *iface, REFIID riid, static HRESULT WINAPI PersistMoniker_QueryInterface(IPersistMoniker *iface, REFIID riid, void **ppv)
void **ppvObject)
{ {
HTMLDocument *This = PERSISTMON_THIS(iface); HTMLDocument *This = PERSISTMON_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppvObject); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI PersistMoniker_AddRef(IPersistMoniker *iface) static ULONG WINAPI PersistMoniker_AddRef(IPersistMoniker *iface)
{ {
HTMLDocument *This = PERSISTMON_THIS(iface); HTMLDocument *This = PERSISTMON_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI PersistMoniker_Release(IPersistMoniker *iface) static ULONG WINAPI PersistMoniker_Release(IPersistMoniker *iface)
{ {
HTMLDocument *This = PERSISTMON_THIS(iface); HTMLDocument *This = PERSISTMON_THIS(iface);
return IHTMLDocument2_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI PersistMoniker_GetClassID(IPersistMoniker *iface, CLSID *pClassID) static HRESULT WINAPI PersistMoniker_GetClassID(IPersistMoniker *iface, CLSID *pClassID)
...@@ -466,22 +465,22 @@ static const IPersistMonikerVtbl PersistMonikerVtbl = { ...@@ -466,22 +465,22 @@ static const IPersistMonikerVtbl PersistMonikerVtbl = {
#define MONPROP_THIS(iface) DEFINE_THIS(HTMLDocument, MonikerProp, iface) #define MONPROP_THIS(iface) DEFINE_THIS(HTMLDocument, MonikerProp, iface)
static HRESULT WINAPI MonikerProp_QueryInterface(IMonikerProp *iface, REFIID riid, void **ppvObject) static HRESULT WINAPI MonikerProp_QueryInterface(IMonikerProp *iface, REFIID riid, void **ppv)
{ {
HTMLDocument *This = MONPROP_THIS(iface); HTMLDocument *This = MONPROP_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppvObject); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI MonikerProp_AddRef(IMonikerProp *iface) static ULONG WINAPI MonikerProp_AddRef(IMonikerProp *iface)
{ {
HTMLDocument *This = MONPROP_THIS(iface); HTMLDocument *This = MONPROP_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI MonikerProp_Release(IMonikerProp *iface) static ULONG WINAPI MonikerProp_Release(IMonikerProp *iface)
{ {
HTMLDocument *This = MONPROP_THIS(iface); HTMLDocument *This = MONPROP_THIS(iface);
return IHTMLDocument_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI MonikerProp_PutProperty(IMonikerProp *iface, MONIKERPROPERTY mkp, LPCWSTR val) static HRESULT WINAPI MonikerProp_PutProperty(IMonikerProp *iface, MONIKERPROPERTY mkp, LPCWSTR val)
...@@ -520,22 +519,22 @@ static const IMonikerPropVtbl MonikerPropVtbl = { ...@@ -520,22 +519,22 @@ static const IMonikerPropVtbl MonikerPropVtbl = {
#define PERSISTFILE_THIS(iface) DEFINE_THIS(HTMLDocument, PersistFile, iface) #define PERSISTFILE_THIS(iface) DEFINE_THIS(HTMLDocument, PersistFile, iface)
static HRESULT WINAPI PersistFile_QueryInterface(IPersistFile *iface, REFIID riid, void **ppvObject) static HRESULT WINAPI PersistFile_QueryInterface(IPersistFile *iface, REFIID riid, void **ppv)
{ {
HTMLDocument *This = PERSISTFILE_THIS(iface); HTMLDocument *This = PERSISTFILE_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppvObject); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI PersistFile_AddRef(IPersistFile *iface) static ULONG WINAPI PersistFile_AddRef(IPersistFile *iface)
{ {
HTMLDocument *This = PERSISTFILE_THIS(iface); HTMLDocument *This = PERSISTFILE_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI PersistFile_Release(IPersistFile *iface) static ULONG WINAPI PersistFile_Release(IPersistFile *iface)
{ {
HTMLDocument *This = PERSISTFILE_THIS(iface); HTMLDocument *This = PERSISTFILE_THIS(iface);
return IHTMLDocument2_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI PersistFile_GetClassID(IPersistFile *iface, CLSID *pClassID) static HRESULT WINAPI PersistFile_GetClassID(IPersistFile *iface, CLSID *pClassID)
...@@ -624,19 +623,19 @@ static HRESULT WINAPI PersistStreamInit_QueryInterface(IPersistStreamInit *iface ...@@ -624,19 +623,19 @@ static HRESULT WINAPI PersistStreamInit_QueryInterface(IPersistStreamInit *iface
REFIID riid, void **ppv) REFIID riid, void **ppv)
{ {
HTMLDocument *This = PERSTRINIT_THIS(iface); HTMLDocument *This = PERSTRINIT_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppv); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI PersistStreamInit_AddRef(IPersistStreamInit *iface) static ULONG WINAPI PersistStreamInit_AddRef(IPersistStreamInit *iface)
{ {
HTMLDocument *This = PERSTRINIT_THIS(iface); HTMLDocument *This = PERSTRINIT_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI PersistStreamInit_Release(IPersistStreamInit *iface) static ULONG WINAPI PersistStreamInit_Release(IPersistStreamInit *iface)
{ {
HTMLDocument *This = PERSTRINIT_THIS(iface); HTMLDocument *This = PERSTRINIT_THIS(iface);
return IHTMLDocument2_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI PersistStreamInit_GetClassID(IPersistStreamInit *iface, CLSID *pClassID) static HRESULT WINAPI PersistStreamInit_GetClassID(IPersistStreamInit *iface, CLSID *pClassID)
...@@ -759,22 +758,22 @@ static const IPersistStreamInitVtbl PersistStreamInitVtbl = { ...@@ -759,22 +758,22 @@ static const IPersistStreamInitVtbl PersistStreamInitVtbl = {
#define PERSISTHIST_THIS(iface) DEFINE_THIS(HTMLDocument, PersistHistory, iface) #define PERSISTHIST_THIS(iface) DEFINE_THIS(HTMLDocument, PersistHistory, iface)
static HRESULT WINAPI PersistHistory_QueryInterface(IPersistHistory *iface, REFIID riid, void **ppvObject) static HRESULT WINAPI PersistHistory_QueryInterface(IPersistHistory *iface, REFIID riid, void **ppv)
{ {
HTMLDocument *This = PERSISTHIST_THIS(iface); HTMLDocument *This = PERSISTHIST_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppvObject); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI PersistHistory_AddRef(IPersistHistory *iface) static ULONG WINAPI PersistHistory_AddRef(IPersistHistory *iface)
{ {
HTMLDocument *This = PERSISTHIST_THIS(iface); HTMLDocument *This = PERSISTHIST_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI PersistHistory_Release(IPersistHistory *iface) static ULONG WINAPI PersistHistory_Release(IPersistHistory *iface)
{ {
HTMLDocument *This = PERSISTHIST_THIS(iface); HTMLDocument *This = PERSISTHIST_THIS(iface);
return IHTMLDocument2_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI PersistHistory_GetClassID(IPersistHistory *iface, CLSID *pClassID) static HRESULT WINAPI PersistHistory_GetClassID(IPersistHistory *iface, CLSID *pClassID)
......
...@@ -211,19 +211,19 @@ static IOleUndoManager *create_undomgr(void) ...@@ -211,19 +211,19 @@ static IOleUndoManager *create_undomgr(void)
static HRESULT WINAPI ServiceProvider_QueryInterface(IServiceProvider *iface, REFIID riid, void **ppv) static HRESULT WINAPI ServiceProvider_QueryInterface(IServiceProvider *iface, REFIID riid, void **ppv)
{ {
HTMLDocument *This = SERVPROV_THIS(iface); HTMLDocument *This = SERVPROV_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppv); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI ServiceProvider_AddRef(IServiceProvider *iface) static ULONG WINAPI ServiceProvider_AddRef(IServiceProvider *iface)
{ {
HTMLDocument *This = SERVPROV_THIS(iface); HTMLDocument *This = SERVPROV_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI ServiceProvider_Release(IServiceProvider *iface) static ULONG WINAPI ServiceProvider_Release(IServiceProvider *iface)
{ {
HTMLDocument *This = SERVPROV_THIS(iface); HTMLDocument *This = SERVPROV_THIS(iface);
return IHTMLDocument_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI ServiceProvider_QueryService(IServiceProvider *iface, REFGUID guidService, static HRESULT WINAPI ServiceProvider_QueryService(IServiceProvider *iface, REFGUID guidService,
......
...@@ -450,19 +450,19 @@ HRESULT call_set_active_object(IOleInPlaceUIWindow *window, IOleInPlaceActiveObj ...@@ -450,19 +450,19 @@ HRESULT call_set_active_object(IOleInPlaceUIWindow *window, IOleInPlaceActiveObj
static HRESULT WINAPI OleDocumentView_QueryInterface(IOleDocumentView *iface, REFIID riid, void **ppvObject) static HRESULT WINAPI OleDocumentView_QueryInterface(IOleDocumentView *iface, REFIID riid, void **ppvObject)
{ {
HTMLDocument *This = DOCVIEW_THIS(iface); HTMLDocument *This = DOCVIEW_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppvObject); return htmldoc_query_interface(This, riid, ppvObject);
} }
static ULONG WINAPI OleDocumentView_AddRef(IOleDocumentView *iface) static ULONG WINAPI OleDocumentView_AddRef(IOleDocumentView *iface)
{ {
HTMLDocument *This = DOCVIEW_THIS(iface); HTMLDocument *This = DOCVIEW_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI OleDocumentView_Release(IOleDocumentView *iface) static ULONG WINAPI OleDocumentView_Release(IOleDocumentView *iface)
{ {
HTMLDocument *This = DOCVIEW_THIS(iface); HTMLDocument *This = DOCVIEW_THIS(iface);
return IHTMLDocument2_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI OleDocumentView_SetInPlaceSite(IOleDocumentView *iface, IOleInPlaceSite *pIPSite) static HRESULT WINAPI OleDocumentView_SetInPlaceSite(IOleDocumentView *iface, IOleInPlaceSite *pIPSite)
...@@ -504,8 +504,8 @@ static HRESULT WINAPI OleDocumentView_GetDocument(IOleDocumentView *iface, IUnkn ...@@ -504,8 +504,8 @@ static HRESULT WINAPI OleDocumentView_GetDocument(IOleDocumentView *iface, IUnkn
if(!ppunk) if(!ppunk)
return E_INVALIDARG; return E_INVALIDARG;
IHTMLDocument2_AddRef(HTMLDOC(This)); htmldoc_addref(This);
*ppunk = (IUnknown*)HTMLDOC(This); *ppunk = (IUnknown*)&This->IHTMLDocument2_iface;
return S_OK; return S_OK;
} }
...@@ -758,22 +758,22 @@ static const IOleDocumentViewVtbl OleDocumentViewVtbl = { ...@@ -758,22 +758,22 @@ static const IOleDocumentViewVtbl OleDocumentViewVtbl = {
#define VIEWOBJ_THIS(iface) DEFINE_THIS(HTMLDocument, ViewObjectEx, iface) #define VIEWOBJ_THIS(iface) DEFINE_THIS(HTMLDocument, ViewObjectEx, iface)
static HRESULT WINAPI ViewObject_QueryInterface(IViewObjectEx *iface, REFIID riid, void **ppvObject) static HRESULT WINAPI ViewObject_QueryInterface(IViewObjectEx *iface, REFIID riid, void **ppv)
{ {
HTMLDocument *This = VIEWOBJ_THIS(iface); HTMLDocument *This = VIEWOBJ_THIS(iface);
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppvObject); return htmldoc_query_interface(This, riid, ppv);
} }
static ULONG WINAPI ViewObject_AddRef(IViewObjectEx *iface) static ULONG WINAPI ViewObject_AddRef(IViewObjectEx *iface)
{ {
HTMLDocument *This = VIEWOBJ_THIS(iface); HTMLDocument *This = VIEWOBJ_THIS(iface);
return IHTMLDocument2_AddRef(HTMLDOC(This)); return htmldoc_addref(This);
} }
static ULONG WINAPI ViewObject_Release(IViewObjectEx *iface) static ULONG WINAPI ViewObject_Release(IViewObjectEx *iface)
{ {
HTMLDocument *This = VIEWOBJ_THIS(iface); HTMLDocument *This = VIEWOBJ_THIS(iface);
return IHTMLDocument2_Release(HTMLDOC(This)); return htmldoc_release(This);
} }
static HRESULT WINAPI ViewObject_Draw(IViewObjectEx *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect, static HRESULT WINAPI ViewObject_Draw(IViewObjectEx *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect,
......
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