From 23393756dd0b79a0dc753ff89b289f530ff10f48 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Thu, 6 Dec 2007 12:22:44 +0100 Subject: [PATCH] mshtml: Added IHTMLStyleSheetRulesCollection::get_length implementation. --- dlls/mshtml/htmlstylesheet.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/htmlstylesheet.c b/dlls/mshtml/htmlstylesheet.c index b4c5a8776ae..781cf6366a4 100644 --- a/dlls/mshtml/htmlstylesheet.c +++ b/dlls/mshtml/htmlstylesheet.c @@ -154,8 +154,20 @@ static HRESULT WINAPI HTMLStyleSheetRulesCollection_get_length(IHTMLStyleSheetRu long *p) { HTMLStyleSheetRulesCollection *This = HTMLSTYLERULESCOL_THIS(iface); - FIXME("(%p)->(%p)\n", This, p); - return E_NOTIMPL; + PRUint32 len = 0; + + TRACE("(%p)->(%p)\n", This, p); + + if(This->nslist) { + nsresult nsres; + + nsres = nsIDOMCSSRuleList_GetLength(This->nslist, &len); + if(NS_FAILED(nsres)) + ERR("GetLength failed: %08x\n", nsres); + } + + *p = len; + return S_OK; } static HRESULT WINAPI HTMLStyleSheetRulesCollection_item(IHTMLStyleSheetRulesCollection *iface,