Commit 16b4bc23 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Initialize HTMLScreen object with compat mode.

parent a2e4ee23
......@@ -1305,7 +1305,7 @@ static HRESULT WINAPI HTMLWindow2_get_screen(IHTMLWindow2 *iface, IHTMLScreen **
if(!window->screen) {
HRESULT hres;
hres = HTMLScreen_Create(&window->screen);
hres = create_html_screen(dispex_compat_mode(&window->event_target.dispex), &window->screen);
if(FAILED(hres))
return hres;
}
......
......@@ -911,7 +911,7 @@ HRESULT HTMLImageElementFactory_Create(HTMLInnerWindow*,HTMLImageElementFactory*
HRESULT HTMLXMLHttpRequestFactory_Create(HTMLInnerWindow*,HTMLXMLHttpRequestFactory**) DECLSPEC_HIDDEN;
HRESULT HTMLLocation_Create(HTMLInnerWindow*,HTMLLocation**) DECLSPEC_HIDDEN;
IOmNavigator *OmNavigator_Create(void) DECLSPEC_HIDDEN;
HRESULT HTMLScreen_Create(IHTMLScreen**) DECLSPEC_HIDDEN;
HRESULT create_html_screen(compat_mode_t,IHTMLScreen**) DECLSPEC_HIDDEN;
HRESULT create_performance(IHTMLPerformance**) DECLSPEC_HIDDEN;
HRESULT create_history(HTMLInnerWindow*,OmHistory**) DECLSPEC_HIDDEN;
HRESULT create_namespace_collection(IHTMLNamespaceCollection**) DECLSPEC_HIDDEN;
......
......@@ -561,7 +561,7 @@ static dispex_static_data_t HTMLScreen_dispex = {
HTMLScreen_iface_tids
};
HRESULT HTMLScreen_Create(IHTMLScreen **ret)
HRESULT create_html_screen(compat_mode_t compat_mode, IHTMLScreen **ret)
{
HTMLScreen *screen;
......@@ -572,7 +572,7 @@ HRESULT HTMLScreen_Create(IHTMLScreen **ret)
screen->IHTMLScreen_iface.lpVtbl = &HTMLSreenVtbl;
screen->ref = 1;
init_dispex(&screen->dispex, (IUnknown*)&screen->IHTMLScreen_iface, &HTMLScreen_dispex);
init_dispex_with_compat_mode(&screen->dispex, (IUnknown*)&screen->IHTMLScreen_iface, &HTMLScreen_dispex, compat_mode);
*ret = &screen->IHTMLScreen_iface;
return S_OK;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment