mshtml: Implement HTMLStyle's toString.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gabriel Ivăncescu 2021-10-07 16:52:34 +03:00 committed by Alexandre Julliard
parent f8c9634262
commit fc4482815c
2 changed files with 5 additions and 2 deletions

View file

@ -3025,8 +3025,10 @@ static HRESULT WINAPI HTMLStyle_removeAttribute(IHTMLStyle *iface, BSTR strAttri
static HRESULT WINAPI HTMLStyle_toString(IHTMLStyle *iface, BSTR *String)
{
HTMLStyle *This = impl_from_IHTMLStyle(iface);
FIXME("(%p)->(%p)\n", This, String);
return E_NOTIMPL;
TRACE("(%p)->(%p)\n", This, String);
return dispex_to_string(&This->css_style.dispex, String);
}
static const IHTMLStyleVtbl HTMLStyleVtbl = {

View file

@ -218,6 +218,7 @@ sync_test("builtin_toString", function() {
test("navigator", window.navigator, "Navigator");
test("screen", window.screen, "Screen");
test("sessionStorage", window.sessionStorage, "Storage");
test("style", document.body.style, "MSStyleCSSProperties");
test("styleSheet", sheet, "CSSStyleSheet");
test("styleSheetRule", sheet.rules.item(0), "CSSStyleRule");
test("styleSheetRules", sheet.rules, "MSCSSRuleList");