Jacek Caban : mshtml: Added IHTMLEventObj::y implementation.
Alexandre Julliard
julliard at winehq.org
Mon Sep 30 16:07:55 CDT 2013
Module: wine
Branch: master
Commit: 93f9d824ebecccccb0f135c324dc35eaad352fbb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=93f9d824ebecccccb0f135c324dc35eaad352fbb
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Sep 30 14:18:14 2013 +0200
mshtml: Added IHTMLEventObj::y implementation.
---
dlls/mshtml/htmlevent.c | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmlevent.c b/dlls/mshtml/htmlevent.c
index ec56029..a7b2969 100644
--- a/dlls/mshtml/htmlevent.c
+++ b/dlls/mshtml/htmlevent.c
@@ -646,10 +646,24 @@ static HRESULT WINAPI HTMLEventObj_get_x(IHTMLEventObj *iface, LONG *p)
static HRESULT WINAPI HTMLEventObj_get_y(IHTMLEventObj *iface, LONG *p)
{
HTMLEventObj *This = impl_from_IHTMLEventObj(iface);
+ LONG y = 0;
- FIXME("(%p)->(%p)\n", This, p);
+ TRACE("(%p)->(%p)\n", This, p);
+
+ if(This->nsevent) {
+ nsIDOMUIEvent *ui_event;
+ nsresult nsres;
- *p = -1;
+ nsres = nsIDOMEvent_QueryInterface(This->nsevent, &IID_nsIDOMUIEvent, (void**)&ui_event);
+ if(NS_SUCCEEDED(nsres)) {
+ /* NOTE: pageY is not exactly right here. */
+ nsres = nsIDOMUIEvent_GetPageY(ui_event, &y);
+ assert(nsres == NS_OK);
+ nsIDOMUIEvent_Release(ui_event);
+ }
+ }
+
+ *p = y;
return S_OK;
}
More information about the wine-cvs
mailing list