[PATCH v4 06/14] mshtml: Implement HTMLStyle's toString.

Gabriel Ivăncescu gabrielopcode at gmail.com
Thu Oct 7 08:52:34 CDT 2021


Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
 dlls/mshtml/htmlstyle.c           | 6 ++++--
 dlls/mshtml/tests/documentmode.js | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/htmlstyle.c b/dlls/mshtml/htmlstyle.c
index 7dd7000..2cbd8a5 100644
--- a/dlls/mshtml/htmlstyle.c
+++ b/dlls/mshtml/htmlstyle.c
@@ -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 = {
diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js
index cf0d7bf..91e50c7 100644
--- a/dlls/mshtml/tests/documentmode.js
+++ b/dlls/mshtml/tests/documentmode.js
@@ -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");
-- 
2.31.1




More information about the wine-devel mailing list