mshtml: Initialize HTMLPerformance object with compat mode.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-03-15 16:17:52 +01:00 committed by Alexandre Julliard
parent 000321b234
commit 19992377b0
3 changed files with 5 additions and 5 deletions

View File

@ -2398,7 +2398,7 @@ static HRESULT WINAPI HTMLWindow7_get_performance(IHTMLWindow7 *iface, VARIANT *
if(!This->performance_initialized) {
IHTMLPerformance *performance;
hres = create_performance(&performance);
hres = create_performance(dispex_compat_mode(&This->event_target.dispex), &performance);
if(FAILED(hres))
return hres;

View File

@ -913,7 +913,7 @@ HRESULT HTMLXMLHttpRequestFactory_Create(HTMLInnerWindow*,HTMLXMLHttpRequestFact
HRESULT HTMLLocation_Create(HTMLInnerWindow*,HTMLLocation**) DECLSPEC_HIDDEN;
HRESULT create_navigator(compat_mode_t,IOmNavigator**) DECLSPEC_HIDDEN;
HRESULT create_html_screen(compat_mode_t,IHTMLScreen**) DECLSPEC_HIDDEN;
HRESULT create_performance(IHTMLPerformance**) DECLSPEC_HIDDEN;
HRESULT create_performance(compat_mode_t,IHTMLPerformance**) DECLSPEC_HIDDEN;
HRESULT create_history(HTMLInnerWindow*,OmHistory**) DECLSPEC_HIDDEN;
HRESULT create_namespace_collection(IHTMLNamespaceCollection**) DECLSPEC_HIDDEN;
HRESULT create_dom_implementation(HTMLDocumentNode*,IHTMLDOMImplementation**) DECLSPEC_HIDDEN;

View File

@ -2172,7 +2172,7 @@ static dispex_static_data_t HTMLPerformance_dispex = {
HTMLPerformance_iface_tids
};
HRESULT create_performance(IHTMLPerformance **ret)
HRESULT create_performance(compat_mode_t compat_mode, IHTMLPerformance **ret)
{
HTMLPerformance *performance;
@ -2183,8 +2183,8 @@ HRESULT create_performance(IHTMLPerformance **ret)
performance->IHTMLPerformance_iface.lpVtbl = &HTMLPerformanceVtbl;
performance->ref = 1;
init_dispex(&performance->dispex, (IUnknown*)&performance->IHTMLPerformance_iface,
&HTMLPerformance_dispex);
init_dispex_with_compat_mode(&performance->dispex, (IUnknown*)&performance->IHTMLPerformance_iface,
&HTMLPerformance_dispex, compat_mode);
*ret = &performance->IHTMLPerformance_iface;
return S_OK;