Jacek Caban : mshtml: Added IHTMLBodyElement::get_background
implementation .
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Apr 13 06:49:41 CDT 2007
Module: wine
Branch: master
Commit: f44e289a861659593002a7d415aee9c877f00122
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f44e289a861659593002a7d415aee9c877f00122
Author: Jacek Caban <jacek at codeweavers.com>
Date: Thu Apr 12 21:22:51 2007 +0200
mshtml: Added IHTMLBodyElement::get_background implementation.
---
dlls/mshtml/htmlbody.c | 23 +++++++++++++++++++++--
1 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmlbody.c b/dlls/mshtml/htmlbody.c
index 542c989..6c7c48a 100644
--- a/dlls/mshtml/htmlbody.c
+++ b/dlls/mshtml/htmlbody.c
@@ -145,8 +145,27 @@ static HRESULT WINAPI HTMLBodyElement_put_background(IHTMLBodyElement *iface, BS
static HRESULT WINAPI HTMLBodyElement_get_background(IHTMLBodyElement *iface, BSTR *p)
{
HTMLBodyElement *This = HTMLBODY_THIS(iface);
- FIXME("(%p)->(%p)\n", This, p);
- return E_NOTIMPL;
+ nsAString background_str;
+ nsresult nsres;
+
+ TRACE("(%p)->(%p)\n", This, p);
+
+ nsAString_Init(&background_str, NULL);
+
+ nsres = nsIDOMHTMLBodyElement_GetBackground(This->nsbody, &background_str);
+ if(NS_SUCCEEDED(nsres)) {
+ const PRUnichar *background;
+ nsAString_GetData(&background_str, &background, NULL);
+ *p = SysAllocString(background);
+ }else {
+ ERR("GetBackground failed: %08x\n", nsres);
+ *p = NULL;
+ }
+
+ nsAString_Finish(&background_str);
+
+ TRACE("*p = %s\n", debugstr_w(*p));
+ return S_OK;
}
static HRESULT WINAPI HTMLBodyElement_put_bgProperties(IHTMLBodyElement *iface, BSTR v)
More information about the wine-cvs
mailing list