[PATCH v2 08/16] mshtml: Implement HTMLStyle's toString.
Gabriel Ivăncescu
gabrielopcode at gmail.com
Tue Oct 5 09:18:41 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 61b9daa..7425c01 100644
--- a/dlls/mshtml/tests/documentmode.js
+++ b/dlls/mshtml/tests/documentmode.js
@@ -203,6 +203,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