Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2b8c553c
Commit
2b8c553c
authored
Mar 14, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use is_main_content_window in a few more places.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d150cc19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
htmlwindow.c
dlls/mshtml/htmlwindow.c
+1
-1
persist.c
dlls/mshtml/persist.c
+7
-7
No files found.
dlls/mshtml/htmlwindow.c
View file @
2b8c553c
...
...
@@ -127,7 +127,7 @@ static void detach_inner_window(HTMLInnerWindow *window)
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
;
if
(
doc
)
...
...
dlls/mshtml/persist.c
View file @
2b8c553c
...
...
@@ -115,9 +115,9 @@ void set_current_mon(HTMLOuterWindow *This, IMoniker *mon, DWORD flags)
HRESULT
hres
;
if
(
This
->
mon
)
{
if
(
This
->
doc_obj
&&
!
(
flags
&
(
BINDING_REPLACE
|
BINDING_REFRESH
)))
{
if
(
This
==
This
->
doc_obj
->
basedoc
.
window
)
notify_travellog_update
(
This
->
doc_obj
);
if
(
This
->
browser
&&
!
(
flags
&
(
BINDING_REPLACE
|
BINDING_REFRESH
)))
{
if
(
is_main_content_window
(
This
)
)
notify_travellog_update
(
This
->
browser
->
doc
);
else
TRACE
(
"Skipping travellog update for frame navigation.
\n
"
);
}
...
...
@@ -351,8 +351,8 @@ HRESULT set_moniker(HTMLOuterWindow *window, IMoniker *mon, IUri *nav_uri, IBind
IUri
*
uri
;
HRESULT
hres
;
if
(
window
->
doc_obj
&&
window
->
doc_obj
->
basedoc
.
window
==
window
)
doc_obj
=
window
->
doc_obj
;
if
(
is_main_content_window
(
window
)
)
doc_obj
=
window
->
browser
->
doc
;
hres
=
IMoniker_GetDisplayName
(
mon
,
pibc
,
NULL
,
&
url
);
if
(
FAILED
(
hres
))
{
...
...
@@ -436,8 +436,8 @@ static void notif_readystate(HTMLOuterWindow *window)
window
->
readystate_pending
=
FALSE
;
if
(
window
->
doc_obj
&&
window
->
doc_obj
->
basedoc
.
window
==
window
)
call_property_onchanged
(
&
window
->
doc_obj
->
basedoc
.
cp_container
,
DISPID_READYSTATE
);
if
(
is_main_content_window
(
window
)
)
call_property_onchanged
(
&
window
->
browser
->
doc
->
basedoc
.
cp_container
,
DISPID_READYSTATE
);
hres
=
create_document_event
(
window
->
base
.
inner_window
->
doc
,
EVENTID_READYSTATECHANGE
,
&
event
);
if
(
SUCCEEDED
(
hres
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment