Commit 6b793e94 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

mshtml: Use ifaces instead of vtbl pointers in HTMLFrameBase.

parent 2a809403
...@@ -220,7 +220,7 @@ static HRESULT HTMLFrameElement_get_readystate(HTMLDOMNode *iface, BSTR *p) ...@@ -220,7 +220,7 @@ static HRESULT HTMLFrameElement_get_readystate(HTMLDOMNode *iface, BSTR *p)
{ {
HTMLFrameElement *This = impl_from_HTMLDOMNode(iface); HTMLFrameElement *This = impl_from_HTMLDOMNode(iface);
return IHTMLFrameBase2_get_readyState(HTMLFRAMEBASE2(&This->framebase), p); return IHTMLFrameBase2_get_readyState(&This->framebase.IHTMLFrameBase2_iface, p);
} }
static HRESULT HTMLFrameElement_get_dispid(HTMLDOMNode *iface, BSTR name, static HRESULT HTMLFrameElement_get_dispid(HTMLDOMNode *iface, BSTR name,
......
...@@ -223,7 +223,7 @@ static HRESULT HTMLIFrame_get_readystate(HTMLDOMNode *iface, BSTR *p) ...@@ -223,7 +223,7 @@ static HRESULT HTMLIFrame_get_readystate(HTMLDOMNode *iface, BSTR *p)
{ {
HTMLIFrame *This = impl_from_HTMLDOMNode(iface); HTMLIFrame *This = impl_from_HTMLDOMNode(iface);
return IHTMLFrameBase2_get_readyState(HTMLFRAMEBASE2(&This->framebase), p); return IHTMLFrameBase2_get_readyState(&This->framebase.IHTMLFrameBase2_iface, p);
} }
static HRESULT HTMLIFrame_bind_to_tree(HTMLDOMNode *iface) static HRESULT HTMLIFrame_bind_to_tree(HTMLDOMNode *iface)
......
...@@ -1610,7 +1610,7 @@ static HRESULT WINAPI HTMLWindow4_get_frameElement(IHTMLWindow4 *iface, IHTMLFra ...@@ -1610,7 +1610,7 @@ static HRESULT WINAPI HTMLWindow4_get_frameElement(IHTMLWindow4 *iface, IHTMLFra
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
if(This->frame_element) { if(This->frame_element) {
*p = HTMLFRAMEBASE(This->frame_element); *p = &This->frame_element->IHTMLFrameBase_iface;
IHTMLFrameBase_AddRef(*p); IHTMLFrameBase_AddRef(*p);
}else }else
*p = NULL; *p = NULL;
......
...@@ -575,8 +575,8 @@ typedef struct { ...@@ -575,8 +575,8 @@ typedef struct {
struct HTMLFrameBase { struct HTMLFrameBase {
HTMLElement element; HTMLElement element;
const IHTMLFrameBaseVtbl *lpIHTMLFrameBaseVtbl; IHTMLFrameBase IHTMLFrameBase_iface;
const IHTMLFrameBase2Vtbl *lpIHTMLFrameBase2Vtbl; IHTMLFrameBase2 IHTMLFrameBase2_iface;
HTMLWindow *content_window; HTMLWindow *content_window;
...@@ -638,8 +638,6 @@ struct HTMLDocumentNode { ...@@ -638,8 +638,6 @@ struct HTMLDocumentNode {
#define BINDINFO(x) ((IInternetBindInfo*) &(x)->lpInternetBindInfoVtbl); #define BINDINFO(x) ((IInternetBindInfo*) &(x)->lpInternetBindInfoVtbl);
#define HTMLTEXTCONT(x) ((IHTMLTextContainer*) &(x)->lpHTMLTextContainerVtbl) #define HTMLTEXTCONT(x) ((IHTMLTextContainer*) &(x)->lpHTMLTextContainerVtbl)
#define HTMLFRAMEBASE(x) ((IHTMLFrameBase*) &(x)->lpIHTMLFrameBaseVtbl)
#define HTMLFRAMEBASE2(x) ((IHTMLFrameBase2*) &(x)->lpIHTMLFrameBase2Vtbl)
#define HTMLOPTFACTORY(x) ((IHTMLOptionElementFactory*) &(x)->lpHTMLOptionElementFactoryVtbl) #define HTMLOPTFACTORY(x) ((IHTMLOptionElementFactory*) &(x)->lpHTMLOptionElementFactoryVtbl)
#define HTMLIMGFACTORY(x) ((IHTMLImageElementFactory*) &(x)->lpHTMLImageElementFactoryVtbl) #define HTMLIMGFACTORY(x) ((IHTMLImageElementFactory*) &(x)->lpHTMLImageElementFactoryVtbl)
......
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