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:
parent
000321b234
commit
19992377b0
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue