From: Jacek Caban jacek@codeweavers.com
--- dlls/mshtml/mshtml_private.h | 1 + dlls/mshtml/svg.c | 14 ++++++++------ dlls/mshtml/tests/documentmode.js | 3 +++ 3 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index 3218582347b..73e4cd4db84 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -441,6 +441,7 @@ typedef struct { X(MutationObserver) \ X(Navigator) \ X(Node) \ + X(SVGCircleElement) \ X(SVGElement) \ X(SVGSVGElement) \ X(Storage) \ diff --git a/dlls/mshtml/svg.c b/dlls/mshtml/svg.c index 524a2aed62a..a4a1b7c24dc 100644 --- a/dlls/mshtml/svg.c +++ b/dlls/mshtml/svg.c @@ -790,12 +790,14 @@ static const event_target_vtbl_t SVGCircleElement_event_target_vtbl = { .handle_event = HTMLElement_handle_event };
-static dispex_static_data_t SVGCircleElement_dispex = { - "HTMLUnknownElement", - &SVGCircleElement_event_target_vtbl.dispex_vtbl, - DispHTMLUnknownElement_tid, - HTMLElement_iface_tids, - HTMLElement_init_dispex_info +dispex_static_data_t SVGCircleElement_dispex = { + .name = "SVGCircleElement", + .id = PROT_SVGCircleElement, + .prototype_id = PROT_SVGElement, + .vtbl = &SVGCircleElement_event_target_vtbl.dispex_vtbl, + .disp_tid = DispHTMLUnknownElement_tid, + .iface_tids = HTMLElement_iface_tids, + .init_info = HTMLElement_init_dispex_info, };
static HRESULT create_circle_element(HTMLDocumentNode *doc, nsIDOMSVGElement *nselem, HTMLElement **elem) diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index f3e8b99a6bd..34569bf24fe 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -351,6 +351,7 @@ sync_test("builtin_toString", function() { test("comment", document.body.firstChild, "Comment");
test("SVGSVGElement", document.createElementNS(svg_ns, "svg"), "SVGSVGElement"); + test("SVGCircleElement", document.createElementNS(svg_ns, "circle"), "SVGCircleElement"); } });
@@ -3201,4 +3202,6 @@ sync_test("prototypes", function() { check(document.createElementNS(svg_ns, "svg"), SVGSVGElement.prototype, "svg:svg element"); check(SVGSVGElement.prototype, SVGElement.prototype, "svg:svg element prototype"); check(SVGElement.prototype, Element.prototype, "svg element prototype"); + check(document.createElementNS(svg_ns, "circle"), SVGCircleElement.prototype, "svg:circle element"); + check(SVGCircleElement.prototype, SVGElement.prototype, "svg:circle element prototype"); });