Commit f961e832 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mshtml: Implement layerX/layerY properties for mouse event.

parent fb9237cf
...@@ -1685,15 +1685,33 @@ static HRESULT WINAPI DOMMouseEvent_get_pageY(IDOMMouseEvent *iface, LONG *p) ...@@ -1685,15 +1685,33 @@ static HRESULT WINAPI DOMMouseEvent_get_pageY(IDOMMouseEvent *iface, LONG *p)
static HRESULT WINAPI DOMMouseEvent_get_layerX(IDOMMouseEvent *iface, LONG *p) static HRESULT WINAPI DOMMouseEvent_get_layerX(IDOMMouseEvent *iface, LONG *p)
{ {
DOMEvent *This = impl_from_IDOMMouseEvent(iface); DOMEvent *This = impl_from_IDOMMouseEvent(iface);
FIXME("(%p)->(%p)\n", This, p); nsresult nsres;
return E_NOTIMPL; LONG r;
TRACE("(%p)->(%p)\n", This, p);
nsres = nsIDOMMouseEvent_GetLayerX(This->mouse_event, &r);
if(NS_FAILED(nsres))
return E_FAIL;
*p = r;
return S_OK;
} }
static HRESULT WINAPI DOMMouseEvent_get_layerY(IDOMMouseEvent *iface, LONG *p) static HRESULT WINAPI DOMMouseEvent_get_layerY(IDOMMouseEvent *iface, LONG *p)
{ {
DOMEvent *This = impl_from_IDOMMouseEvent(iface); DOMEvent *This = impl_from_IDOMMouseEvent(iface);
FIXME("(%p)->(%p)\n", This, p); nsresult nsres;
return E_NOTIMPL; LONG r;
TRACE("(%p)->(%p)\n", This, p);
nsres = nsIDOMMouseEvent_GetLayerY(This->mouse_event, &r);
if(NS_FAILED(nsres))
return E_FAIL;
*p = r;
return S_OK;
} }
static HRESULT WINAPI DOMMouseEvent_get_which(IDOMMouseEvent *iface, USHORT *p) static HRESULT WINAPI DOMMouseEvent_get_which(IDOMMouseEvent *iface, USHORT *p)
......
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