[PATCH] mshtml: Implement HTMLStyleSheetRulesCollection::item.

Jacek Caban jacek at codeweavers.com
Tue May 7 06:38:42 CDT 2019


Hi Dmitry,

The patch looks mostly good.

On 5/6/19 6:57 AM, Dmitry Timoshkov wrote:
> @@ -169,8 +339,22 @@ static HRESULT WINAPI HTMLStyleSheetRulesCollection_item(IHTMLStyleSheetRulesCol
>           LONG index, IHTMLStyleSheetRule **ppHTMLStyleSheetRule)
>   {
>       HTMLStyleSheetRulesCollection *This = impl_from_IHTMLStyleSheetRulesCollection(iface);
> -    FIXME("(%p)->(%d %p)\n", This, index, ppHTMLStyleSheetRule);
> -    return E_NOTIMPL;
> +    nsIDOMCSSRule *nsstylesheetrule;
> +    nsresult nsres;
> +
> +    TRACE("(%p)->(%d %p)\n", This, index, ppHTMLStyleSheetRule);
> +
> +    nsres = nsIDOMCSSRuleList_Item(This->nslist, index, &nsstylesheetrule);
> +    if (NS_FAILED(nsres) || !nsstylesheetrule)
> +    {
> +        WARN("Item failed: %08x\n", nsres);
> +        /* The function returns S_OK even if the element is not found */
> +        *ppHTMLStyleSheetRule = NULL;

This test does not confirm that:

https://testbot.winehq.org/JobDetails.pl?Key=51932


Thanks,

Jacek




More information about the wine-devel mailing list