Jacek Caban : mshtml: Added IHTMLElement2::clientLeft implementation.
Alexandre Julliard
julliard at winehq.org
Mon Oct 5 09:54:26 CDT 2009
Module: wine
Branch: master
Commit: 74071b0505234c7dab9b1fd69bd4692dbaf20506
URL: http://source.winehq.org/git/wine.git/?a=commit;h=74071b0505234c7dab9b1fd69bd4692dbaf20506
Author: Jacek Caban <jacek at codeweavers.com>
Date: Sun Oct 4 21:59:05 2009 +0200
mshtml: Added IHTMLElement2::clientLeft implementation.
---
dlls/mshtml/htmlelem2.c | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmlelem2.c b/dlls/mshtml/htmlelem2.c
index 5b58fd4..b870a2a 100644
--- a/dlls/mshtml/htmlelem2.c
+++ b/dlls/mshtml/htmlelem2.c
@@ -614,8 +614,25 @@ static HRESULT WINAPI HTMLElement2_get_clientTop(IHTMLElement2 *iface, LONG *p)
static HRESULT WINAPI HTMLElement2_get_clientLeft(IHTMLElement2 *iface, LONG *p)
{
HTMLElement *This = HTMLELEM2_THIS(iface);
- FIXME("(%p)->(%p)\n", This, p);
- return E_NOTIMPL;
+ nsIDOMNSElement *nselem;
+ PRInt32 client_left = 0;
+ nsresult nsres;
+
+ TRACE("(%p)->(%p)\n", This, p);
+
+ nsres = nsIDOMElement_QueryInterface(This->nselem, &IID_nsIDOMNSElement, (void**)&nselem);
+ if(NS_SUCCEEDED(nsres)) {
+ nsres = nsIDOMNSElement_GetClientLeft(nselem, &client_left);
+ nsIDOMNSElement_Release(nselem);
+ if(NS_FAILED(nsres))
+ ERR("GetScrollHeight failed: %08x\n", nsres);
+ }else {
+ ERR("Could not get nsIDOMNSElement interface: %08x\n", nsres);
+ }
+
+ *p = client_left;
+ TRACE("*p = %d\n", *p);
+ return S_OK;
}
static HRESULT WINAPI HTMLElement2_attachEvent(IHTMLElement2 *iface, BSTR event,
More information about the wine-cvs
mailing list