mshtml: Added IHTMLWindow7::innerWidth and innerHeight implementation.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2018-05-18 13:53:38 +02:00 committed by Alexandre Julliard
parent 3c6a5a7159
commit 127df7021d
1 changed files with 26 additions and 4 deletions

View File

@ -2330,15 +2330,37 @@ static HRESULT WINAPI HTMLWindow7_get_performance(IHTMLWindow7 *iface, VARIANT *
static HRESULT WINAPI HTMLWindow7_get_innerWidth(IHTMLWindow7 *iface, LONG *p)
{
HTMLWindow *This = impl_from_IHTMLWindow7(iface);
FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL;
INT32 ret;
nsresult nsres;
TRACE("(%p)->(%p)\n", This, p);
nsres = nsIDOMWindow_GetInnerWidth(This->outer_window->nswindow, &ret);
if(NS_FAILED(nsres)) {
ERR("GetInnerWidth failed: %08x\n", nsres);
return E_FAIL;
}
*p = ret;
return S_OK;
}
static HRESULT WINAPI HTMLWindow7_get_innerHeight(IHTMLWindow7 *iface, LONG *p)
{
HTMLWindow *This = impl_from_IHTMLWindow7(iface);
FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL;
INT32 ret;
nsresult nsres;
TRACE("(%p)->(%p)\n", This, p);
nsres = nsIDOMWindow_GetInnerHeight(This->outer_window->nswindow, &ret);
if(NS_FAILED(nsres)) {
ERR("GetInnerWidth failed: %08x\n", nsres);
return E_FAIL;
}
*p = ret;
return S_OK;
}
static HRESULT WINAPI HTMLWindow7_get_pageXOffset(IHTMLWindow7 *iface, LONG *p)