Jacek Caban : mshtml: Added IHTMLStyleSheetsCollection:: get_length implementation.
Alexandre Julliard
julliard at winehq.org
Wed Sep 19 08:16:26 CDT 2007
Module: wine
Branch: master
Commit: 271049ca0920a852350fe70bdf13d8e23b103244
URL: http://source.winehq.org/git/wine.git/?a=commit;h=271049ca0920a852350fe70bdf13d8e23b103244
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Sep 19 13:10:02 2007 +0200
mshtml: Added IHTMLStyleSheetsCollection::get_length implementation.
---
dlls/mshtml/htmlstylesheet.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmlstylesheet.c b/dlls/mshtml/htmlstylesheet.c
index 00a71f6..30be079 100644
--- a/dlls/mshtml/htmlstylesheet.c
+++ b/dlls/mshtml/htmlstylesheet.c
@@ -144,8 +144,15 @@ static HRESULT WINAPI HTMLStyleSheetsCollection_get_length(IHTMLStyleSheetsColle
long *p)
{
HTMLStyleSheetsCollection *This = HTMLSTYLESHEETSCOL_THIS(iface);
- FIXME("(%p)->(%p)\n", This, p);
- return E_NOTIMPL;
+ PRUint32 len = 0;
+
+ TRACE("(%p)->(%p)\n", This, p);
+
+ if(This->nslist)
+ nsIDOMStyleSheetList_GetLength(This->nslist, &len);
+
+ *p = len;
+ return S_OK;
}
static HRESULT WINAPI HTMLStyleSheetsCollection_get__newEnum(IHTMLStyleSheetsCollection *iface,
More information about the wine-cvs
mailing list