Commit 2b8c553c authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Use is_main_content_window in a few more places.

parent d150cc19
...@@ -127,7 +127,7 @@ static void detach_inner_window(HTMLInnerWindow *window) ...@@ -127,7 +127,7 @@ static void detach_inner_window(HTMLInnerWindow *window)
IHTMLWindow2_Release(&child->base.IHTMLWindow2_iface); IHTMLWindow2_Release(&child->base.IHTMLWindow2_iface);
} }
if(outer_window && outer_window->doc_obj && outer_window == outer_window->doc_obj->basedoc.window) if(outer_window && is_main_content_window(outer_window))
window->doc->basedoc.cp_container.forward_container = NULL; window->doc->basedoc.cp_container.forward_container = NULL;
if(doc) if(doc)
......
...@@ -115,9 +115,9 @@ void set_current_mon(HTMLOuterWindow *This, IMoniker *mon, DWORD flags) ...@@ -115,9 +115,9 @@ void set_current_mon(HTMLOuterWindow *This, IMoniker *mon, DWORD flags)
HRESULT hres; HRESULT hres;
if(This->mon) { if(This->mon) {
if(This->doc_obj && !(flags & (BINDING_REPLACE|BINDING_REFRESH))) { if(This->browser && !(flags & (BINDING_REPLACE|BINDING_REFRESH))) {
if(This == This->doc_obj->basedoc.window) if(is_main_content_window(This))
notify_travellog_update(This->doc_obj); notify_travellog_update(This->browser->doc);
else else
TRACE("Skipping travellog update for frame navigation.\n"); TRACE("Skipping travellog update for frame navigation.\n");
} }
...@@ -351,8 +351,8 @@ HRESULT set_moniker(HTMLOuterWindow *window, IMoniker *mon, IUri *nav_uri, IBind ...@@ -351,8 +351,8 @@ HRESULT set_moniker(HTMLOuterWindow *window, IMoniker *mon, IUri *nav_uri, IBind
IUri *uri; IUri *uri;
HRESULT hres; HRESULT hres;
if(window->doc_obj && window->doc_obj->basedoc.window == window) if(is_main_content_window(window))
doc_obj = window->doc_obj; doc_obj = window->browser->doc;
hres = IMoniker_GetDisplayName(mon, pibc, NULL, &url); hres = IMoniker_GetDisplayName(mon, pibc, NULL, &url);
if(FAILED(hres)) { if(FAILED(hres)) {
...@@ -436,8 +436,8 @@ static void notif_readystate(HTMLOuterWindow *window) ...@@ -436,8 +436,8 @@ static void notif_readystate(HTMLOuterWindow *window)
window->readystate_pending = FALSE; window->readystate_pending = FALSE;
if(window->doc_obj && window->doc_obj->basedoc.window == window) if(is_main_content_window(window))
call_property_onchanged(&window->doc_obj->basedoc.cp_container, DISPID_READYSTATE); call_property_onchanged(&window->browser->doc->basedoc.cp_container, DISPID_READYSTATE);
hres = create_document_event(window->base.inner_window->doc, EVENTID_READYSTATECHANGE, &event); hres = create_document_event(window->base.inner_window->doc, EVENTID_READYSTATECHANGE, &event);
if(SUCCEEDED(hres)) { if(SUCCEEDED(hres)) {
......
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