Jacek Caban : mshtml: Added IHTMLElement2::get_clientWidth implementation.
Alexandre Julliard
julliard at winehq.org
Thu Jun 19 06:39:07 CDT 2008
Module: wine
Branch: master
Commit: 1acddbf5c9c66e9dc31d782298fbe880da7f70be
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1acddbf5c9c66e9dc31d782298fbe880da7f70be
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Jun 18 17:08:52 2008 -0500
mshtml: Added IHTMLElement2::get_clientWidth implementation.
---
dlls/mshtml/htmlelem2.c | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmlelem2.c b/dlls/mshtml/htmlelem2.c
index a1fba29..d68d0f4 100644
--- a/dlls/mshtml/htmlelem2.c
+++ b/dlls/mshtml/htmlelem2.c
@@ -507,8 +507,22 @@ static HRESULT WINAPI HTMLElement2_get_clientHeight(IHTMLElement2 *iface, long *
static HRESULT WINAPI HTMLElement2_get_clientWidth(IHTMLElement2 *iface, long *p)
{
HTMLElement *This = HTMLELEM2_THIS(iface);
- FIXME("(%p)->(%p)\n", This, p);
- return E_NOTIMPL;
+ nsIDOMNSHTMLElement *nselem;
+ PRInt32 width=0;
+ nsresult nsres;
+
+ TRACE("(%p)->(%p)\n", This, p);
+
+ nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMNSHTMLElement, (void**)&nselem);
+ if(NS_SUCCEEDED(nsres)) {
+ nsIDOMNSHTMLElement_GetClientWidth(nselem, &width);
+ nsIDOMNSHTMLElement_Release(nselem);
+ }else {
+ ERR("Could not get nsIDOMHTMLNSElement: %08x\n", nsres);
+ }
+
+ *p = width;
+ return S_OK;
}
static HRESULT WINAPI HTMLElement2_get_clientTop(IHTMLElement2 *iface, long *p)
More information about the wine-cvs
mailing list