Jacek Caban : mshtml: Added IHTMLAnchorElement::rel property implementation .
Alexandre Julliard
julliard at winehq.org
Thu May 2 14:07:03 CDT 2013
Module: wine
Branch: master
Commit: ca1f4c447ad80ebc3ae576262022613f5184677b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ca1f4c447ad80ebc3ae576262022613f5184677b
Author: Jacek Caban <jacek at codeweavers.com>
Date: Thu May 2 14:05:01 2013 +0200
mshtml: Added IHTMLAnchorElement::rel property implementation.
---
dlls/mshtml/htmlanchor.c | 24 ++++++++++++++++++++----
1 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/dlls/mshtml/htmlanchor.c b/dlls/mshtml/htmlanchor.c
index d4e1238..8471b71 100644
--- a/dlls/mshtml/htmlanchor.c
+++ b/dlls/mshtml/htmlanchor.c
@@ -266,15 +266,31 @@ static HRESULT WINAPI HTMLAnchorElement_get_target(IHTMLAnchorElement *iface, BS
static HRESULT WINAPI HTMLAnchorElement_put_rel(IHTMLAnchorElement *iface, BSTR v)
{
HTMLAnchorElement *This = impl_from_IHTMLAnchorElement(iface);
- FIXME("(%p)->(%s)\n", This, debugstr_w(v));
- return E_NOTIMPL;
+ nsAString nsstr;
+ nsresult nsres;
+
+ TRACE("(%p)->(%s)\n", This, debugstr_w(v));
+
+ nsAString_InitDepend(&nsstr, v);
+ nsres = nsIDOMHTMLAnchorElement_SetRel(This->nsanchor, &nsstr);
+ nsAString_Finish(&nsstr);
+ if(NS_FAILED(nsres))
+ return E_FAIL;
+
+ return S_OK;
}
static HRESULT WINAPI HTMLAnchorElement_get_rel(IHTMLAnchorElement *iface, BSTR *p)
{
HTMLAnchorElement *This = impl_from_IHTMLAnchorElement(iface);
- FIXME("(%p)->(%p)\n", This, p);
- return E_NOTIMPL;
+ nsAString nsstr;
+ nsresult nsres;
+
+ TRACE("(%p)->(%p)\n", This, p);
+
+ nsAString_Init(&nsstr, NULL);
+ nsres = nsIDOMHTMLAnchorElement_GetRel(This->nsanchor, &nsstr);
+ return return_nsstr(nsres, &nsstr, p);
}
static HRESULT WINAPI HTMLAnchorElement_put_rev(IHTMLAnchorElement *iface, BSTR v)
More information about the wine-cvs
mailing list