Jacek Caban : mshtml: Added IHTMLWindow7:: innerWidth and innerHeight implementation.
Alexandre Julliard
julliard at winehq.org
Fri May 18 16:53:13 CDT 2018
Module: wine
Branch: master
Commit: 127df7021dd99a6698286a33fe97f2c7e3a90aba
URL: https://source.winehq.org/git/wine.git/?a=commit;h=127df7021dd99a6698286a33fe97f2c7e3a90aba
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri May 18 13:53:38 2018 +0200
mshtml: Added IHTMLWindow7::innerWidth and innerHeight implementation.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mshtml/htmlwindow.c | 30 ++++++++++++++++++++++++++----
1 file changed, 26 insertions(+), 4 deletions(-)
diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c
index e198ed1..ec20e8f 100644
--- a/dlls/mshtml/htmlwindow.c
+++ b/dlls/mshtml/htmlwindow.c
@@ -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)
More information about the wine-cvs
mailing list