mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 04:48:36 +00:00
mshtml: Use DISPEX_IDISPATCH_IMPL in htmlcomment.c.
This commit is contained in:
parent
d7618eb2cd
commit
462264f6d7
|
@ -43,59 +43,8 @@ static inline HTMLCommentElement *impl_from_IHTMLCommentElement(IHTMLCommentElem
|
|||
return CONTAINING_RECORD(iface, HTMLCommentElement, IHTMLCommentElement_iface);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLCommentElement_QueryInterface(IHTMLCommentElement *iface,
|
||||
REFIID riid, void **ppv)
|
||||
{
|
||||
HTMLCommentElement *This = impl_from_IHTMLCommentElement(iface);
|
||||
|
||||
return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
|
||||
}
|
||||
|
||||
static ULONG WINAPI HTMLCommentElement_AddRef(IHTMLCommentElement *iface)
|
||||
{
|
||||
HTMLCommentElement *This = impl_from_IHTMLCommentElement(iface);
|
||||
|
||||
return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
|
||||
}
|
||||
|
||||
static ULONG WINAPI HTMLCommentElement_Release(IHTMLCommentElement *iface)
|
||||
{
|
||||
HTMLCommentElement *This = impl_from_IHTMLCommentElement(iface);
|
||||
|
||||
return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLCommentElement_GetTypeInfoCount(IHTMLCommentElement *iface, UINT *pctinfo)
|
||||
{
|
||||
HTMLCommentElement *This = impl_from_IHTMLCommentElement(iface);
|
||||
return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLCommentElement_GetTypeInfo(IHTMLCommentElement *iface, UINT iTInfo,
|
||||
LCID lcid, ITypeInfo **ppTInfo)
|
||||
{
|
||||
HTMLCommentElement *This = impl_from_IHTMLCommentElement(iface);
|
||||
return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
|
||||
ppTInfo);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLCommentElement_GetIDsOfNames(IHTMLCommentElement *iface, REFIID riid,
|
||||
LPOLESTR *rgszNames, UINT cNames,
|
||||
LCID lcid, DISPID *rgDispId)
|
||||
{
|
||||
HTMLCommentElement *This = impl_from_IHTMLCommentElement(iface);
|
||||
return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
|
||||
cNames, lcid, rgDispId);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLCommentElement_Invoke(IHTMLCommentElement *iface, DISPID dispIdMember,
|
||||
REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
|
||||
VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
|
||||
{
|
||||
HTMLCommentElement *This = impl_from_IHTMLCommentElement(iface);
|
||||
return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
|
||||
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
|
||||
}
|
||||
DISPEX_IDISPATCH_IMPL(HTMLCommentElement, IHTMLCommentElement,
|
||||
impl_from_IHTMLCommentElement(iface)->element.node.event_target.dispex)
|
||||
|
||||
static HRESULT WINAPI HTMLCommentElement_put_text(IHTMLCommentElement *iface, BSTR v)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue