Jacek Caban : mshtml: Added IHTMLStyleSheetRulesCollection:: get_length implementation.

Alexandre Julliard julliard at winehq.org
Thu Dec 6 08:26:51 CST 2007


Module: wine
Branch: master
Commit: 23393756dd0b79a0dc753ff89b289f530ff10f48
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=23393756dd0b79a0dc753ff89b289f530ff10f48

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Dec  6 12:22:44 2007 +0100

mshtml: Added IHTMLStyleSheetRulesCollection::get_length implementation.

---

 dlls/mshtml/htmlstylesheet.c |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/htmlstylesheet.c b/dlls/mshtml/htmlstylesheet.c
index b4c5a87..781cf63 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,




More information about the wine-cvs mailing list