Jacek Caban : mshtml: Added get_all implementation.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jul 17 07:00:19 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 17e193e1883bf55334aff6ff6fc72cbedcd040a9
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=17e193e1883bf55334aff6ff6fc72cbedcd040a9
Author: Jacek Caban <jacek at codeweavers.com>
Date: Sun Jul 16 21:29:44 2006 +0200
mshtml: Added get_all implementation.
---
dlls/mshtml/htmldoc.c | 22 ++++++++++++++++++++--
1 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c
index 18f5cdd..2bf8522 100644
--- a/dlls/mshtml/htmldoc.c
+++ b/dlls/mshtml/htmldoc.c
@@ -209,8 +209,26 @@ static HRESULT WINAPI HTMLDocument_get_S
static HRESULT WINAPI HTMLDocument_get_all(IHTMLDocument2 *iface, IHTMLElementCollection **p)
{
- FIXME("(%p)->(%p)\n", iface, p);
- return E_NOTIMPL;
+ HTMLDocument *This = HTMLDOC_THIS(iface);
+ IHTMLElement *doc;
+ IDispatch *disp;
+ HRESULT hres;
+
+ TRACE("(%p)->(%p)\n", This, p);
+
+ hres = IHTMLDocument3_get_documentElement(HTMLDOC3(This), &doc);
+ if(FAILED(hres))
+ return hres;
+
+ hres = IHTMLElement_get_all(doc, &disp);
+ IHTMLElement_Release(doc);
+ if(FAILED(hres))
+ return hres;
+
+ hres = IDispatch_QueryInterface(disp, &IID_IHTMLElementCollection, (void**)p);
+ IDispatch_Release(disp);
+
+ return hres;
}
static HRESULT WINAPI HTMLDocument_get_body(IHTMLDocument2 *iface, IHTMLElement **p)
More information about the wine-cvs
mailing list