Commit c4fe86da authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Initialize HTMLStorage object with compat mode.

parent 9e1d876d
...@@ -197,7 +197,7 @@ static dispex_static_data_t HTMLStorage_dispex = { ...@@ -197,7 +197,7 @@ static dispex_static_data_t HTMLStorage_dispex = {
HTMLStorage_iface_tids HTMLStorage_iface_tids
}; };
HRESULT create_storage(IHTMLStorage **p) HRESULT create_html_storage(compat_mode_t compat_mode, IHTMLStorage **p)
{ {
HTMLStorage *storage; HTMLStorage *storage;
...@@ -207,7 +207,7 @@ HRESULT create_storage(IHTMLStorage **p) ...@@ -207,7 +207,7 @@ HRESULT create_storage(IHTMLStorage **p)
storage->IHTMLStorage_iface.lpVtbl = &HTMLStorageVtbl; storage->IHTMLStorage_iface.lpVtbl = &HTMLStorageVtbl;
storage->ref = 1; storage->ref = 1;
init_dispex(&storage->dispex, (IUnknown*)&storage->IHTMLStorage_iface, &HTMLStorage_dispex); init_dispex_with_compat_mode(&storage->dispex, (IUnknown*)&storage->IHTMLStorage_iface, &HTMLStorage_dispex, compat_mode);
*p = &storage->IHTMLStorage_iface; *p = &storage->IHTMLStorage_iface;
return S_OK; return S_OK;
......
...@@ -2137,7 +2137,8 @@ static HRESULT WINAPI HTMLWindow6_get_sessionStorage(IHTMLWindow6 *iface, IHTMLS ...@@ -2137,7 +2137,8 @@ static HRESULT WINAPI HTMLWindow6_get_sessionStorage(IHTMLWindow6 *iface, IHTMLS
if(!This->inner_window->session_storage) { if(!This->inner_window->session_storage) {
HRESULT hres; HRESULT hres;
hres = create_storage(&This->inner_window->session_storage); hres = create_html_storage(dispex_compat_mode(&This->inner_window->event_target.dispex),
&This->inner_window->session_storage);
if(FAILED(hres)) if(FAILED(hres))
return hres; return hres;
} }
...@@ -2156,7 +2157,8 @@ static HRESULT WINAPI HTMLWindow6_get_localStorage(IHTMLWindow6 *iface, IHTMLSto ...@@ -2156,7 +2157,8 @@ static HRESULT WINAPI HTMLWindow6_get_localStorage(IHTMLWindow6 *iface, IHTMLSto
if(!This->inner_window->local_storage) { if(!This->inner_window->local_storage) {
HRESULT hres; HRESULT hres;
hres = create_storage(&This->inner_window->local_storage); hres = create_html_storage(dispex_compat_mode(&This->inner_window->event_target.dispex),
&This->inner_window->local_storage);
if(FAILED(hres)) if(FAILED(hres))
return hres; return hres;
} }
......
...@@ -919,7 +919,7 @@ HRESULT create_namespace_collection(compat_mode_t,IHTMLNamespaceCollection**) DE ...@@ -919,7 +919,7 @@ HRESULT create_namespace_collection(compat_mode_t,IHTMLNamespaceCollection**) DE
HRESULT create_dom_implementation(HTMLDocumentNode*,IHTMLDOMImplementation**) DECLSPEC_HIDDEN; HRESULT create_dom_implementation(HTMLDocumentNode*,IHTMLDOMImplementation**) DECLSPEC_HIDDEN;
void detach_dom_implementation(IHTMLDOMImplementation*) DECLSPEC_HIDDEN; void detach_dom_implementation(IHTMLDOMImplementation*) DECLSPEC_HIDDEN;
HRESULT create_storage(IHTMLStorage**) DECLSPEC_HIDDEN; HRESULT create_html_storage(compat_mode_t,IHTMLStorage**) DECLSPEC_HIDDEN;
void HTMLDocument_Persist_Init(HTMLDocument*) DECLSPEC_HIDDEN; void HTMLDocument_Persist_Init(HTMLDocument*) DECLSPEC_HIDDEN;
void HTMLDocument_OleCmd_Init(HTMLDocument*) DECLSPEC_HIDDEN; void HTMLDocument_OleCmd_Init(HTMLDocument*) DECLSPEC_HIDDEN;
......
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