From: Jacek Caban jacek@codeweavers.com
--- dlls/mshtml/mshtml_private.h | 1 + dlls/mshtml/omnavigator.c | 14 +++++++------- dlls/mshtml/tests/documentmode.js | 2 ++ 3 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index 7ccc7fb163f..7dbfd4ecec8 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -461,6 +461,7 @@ typedef struct { X(Navigator) \ X(Node) \ X(PageTransitionEvent) \ + X(Performance) \ X(PerformanceNavigation) \ X(PerformanceTiming) \ X(PluginArray) \ diff --git a/dlls/mshtml/omnavigator.c b/dlls/mshtml/omnavigator.c index 35357f32312..d781d17eefb 100644 --- a/dlls/mshtml/omnavigator.c +++ b/dlls/mshtml/omnavigator.c @@ -1805,15 +1805,15 @@ static const dispex_static_data_vtbl_t HTMLPerformance_dispex_vtbl = { .unlink = HTMLPerformance_unlink };
-static const tid_t HTMLPerformance_iface_tids[] = { +static const tid_t Performance_iface_tids[] = { IHTMLPerformance_tid, 0 }; -static dispex_static_data_t HTMLPerformance_dispex = { - "Performance", - &HTMLPerformance_dispex_vtbl, - IHTMLPerformance_tid, - HTMLPerformance_iface_tids +dispex_static_data_t Performance_dispex = { + .id = PROT_Performance, + .vtbl = &HTMLPerformance_dispex_vtbl, + .disp_tid = IHTMLPerformance_tid, + .iface_tids = Performance_iface_tids, };
HRESULT create_performance(HTMLInnerWindow *window, IHTMLPerformance **ret) @@ -1829,7 +1829,7 @@ HRESULT create_performance(HTMLInnerWindow *window, IHTMLPerformance **ret) performance->window = window; IHTMLWindow2_AddRef(&window->base.IHTMLWindow2_iface);
- init_dispatch(&performance->dispex, &HTMLPerformance_dispex, window, compat_mode); + init_dispatch(&performance->dispex, &Performance_dispex, window, compat_mode);
*ret = &performance->IHTMLPerformance_iface; return S_OK; diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index a5743717060..1677a682146 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -3277,4 +3277,6 @@ sync_test("prototypes", function() { check(PerformanceTiming.prototype, Object.prototype, "timing prototype"); check(performance.navigation, PerformanceNavigation.prototype, "navigation"); check(PerformanceNavigation.prototype, Object.prototype, "navigation prototype"); + check(performance, Performance.prototype, "performance"); + check(Performance.prototype, Object.prototype, "performance prototype"); });