From: Jacek Caban jacek@codeweavers.com
--- dlls/mshtml/htmlstyleelem.c | 14 ++++++++------ dlls/mshtml/mshtml_private.h | 1 + dlls/mshtml/tests/documentmode.js | 2 ++ 3 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/dlls/mshtml/htmlstyleelem.c b/dlls/mshtml/htmlstyleelem.c index 3d23bff5da8..9a5d43ad36e 100644 --- a/dlls/mshtml/htmlstyleelem.c +++ b/dlls/mshtml/htmlstyleelem.c @@ -335,12 +335,14 @@ static const tid_t HTMLStyleElement_iface_tids[] = { HTMLELEMENT_TIDS, 0 }; -static dispex_static_data_t HTMLStyleElement_dispex = { - "HTMLStyleElement", - &HTMLStyleElement_event_target_vtbl.dispex_vtbl, - DispHTMLStyleElement_tid, - HTMLStyleElement_iface_tids, - HTMLStyleElement_init_dispex_info +dispex_static_data_t HTMLStyleElement_dispex = { + .name = "HTMLStyleElement", + .id = PROT_HTMLStyleElement, + .prototype_id = PROT_HTMLElement, + .vtbl = &HTMLStyleElement_event_target_vtbl.dispex_vtbl, + .disp_tid = DispHTMLStyleElement_tid, + .iface_tids = HTMLStyleElement_iface_tids, + .init_info = HTMLStyleElement_init_dispex_info, };
HRESULT HTMLStyleElement_Create(HTMLDocumentNode *doc, nsIDOMElement *nselem, HTMLElement **elem) diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index f585d1920f4..40bde4fd98e 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -431,6 +431,7 @@ typedef struct { X(HTMLOptionElement) \ X(HTMLScriptElement) \ X(HTMLSelectElement) \ + X(HTMLStyleElement) \ X(HTMLTitleElement) \ X(MutationObserver) \ X(Navigator) \ diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index f2b3968140f..a5703358b93 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -3184,4 +3184,6 @@ sync_test("prototypes", function() { check(HTMLScriptElement.prototype, HTMLElement.prototype, "script element prototype"); check(document.createElement("select"), HTMLSelectElement.prototype, "select element"); check(HTMLSelectElement.prototype, HTMLElement.prototype, "select element prototype"); + check(document.createElement("style"), HTMLStyleElement.prototype, "style element"); + check(HTMLStyleElement.prototype, HTMLElement.prototype, "style element prototype"); });