mshtml: Added IHTMLDocument7::get_defaultView implementation and use it for get_parentWindow implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2fc598ddb0
commit
697f1cb60f
|
@ -1632,9 +1632,7 @@ static HRESULT WINAPI HTMLDocument_get_parentWindow(IHTMLDocument2 *iface, IHTML
|
|||
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
|
||||
*p = &This->window->base.IHTMLWindow2_iface;
|
||||
IHTMLWindow2_AddRef(*p);
|
||||
return S_OK;
|
||||
return IHTMLDocument7_get_defaultView(&This->IHTMLDocument7_iface, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLDocument_get_styleSheets(IHTMLDocument2 *iface,
|
||||
|
@ -3254,8 +3252,12 @@ static HRESULT WINAPI HTMLDocument7_Invoke(IHTMLDocument7 *iface, DISPID dispIdM
|
|||
static HRESULT WINAPI HTMLDocument7_get_defaultView(IHTMLDocument7 *iface, IHTMLWindow2 **p)
|
||||
{
|
||||
HTMLDocument *This = impl_from_IHTMLDocument7(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
|
||||
*p = &This->window->base.IHTMLWindow2_iface;
|
||||
IHTMLWindow2_AddRef(*p);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLDocument7_createCDATASection(IHTMLDocument7 *iface, BSTR text, IHTMLDOMNode **newCDATASectionNode)
|
||||
|
@ -3977,8 +3979,10 @@ static HRESULT WINAPI HTMLDocument7_importNode(IHTMLDocument7 *iface, IHTMLDOMNo
|
|||
static HRESULT WINAPI HTMLDocument7_get_parentWindow(IHTMLDocument7 *iface, IHTMLWindow2 **p)
|
||||
{
|
||||
HTMLDocument *This = impl_from_IHTMLDocument7(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
|
||||
return IHTMLDocument7_get_defaultView(&This->IHTMLDocument7_iface, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLDocument7_put_body(IHTMLDocument7 *iface, IHTMLElement *v)
|
||||
|
|
Loading…
Reference in New Issue