Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3c421a81
Commit
3c421a81
authored
Aug 18, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Skip mutation notifications on documents that are being replaced.
parent
43302910
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
1 deletion
+14
-1
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
mutation.c
dlls/mshtml/mutation.c
+3
-0
navigate.c
dlls/mshtml/navigate.c
+5
-0
nsio.c
dlls/mshtml/nsio.c
+5
-1
No files found.
dlls/mshtml/mshtml_private.h
View file @
3c421a81
...
...
@@ -586,6 +586,7 @@ struct HTMLDocumentNode {
nsDocumentEventListener
*
nsevent_listener
;
BOOL
*
event_vector
;
BOOL
skip_mutation_notif
;
mutation_queue_t
*
mutation_queue
;
mutation_queue_t
*
mutation_queue_tail
;
...
...
dlls/mshtml/mutation.c
View file @
3c421a81
...
...
@@ -558,6 +558,9 @@ static void NSAPI nsDocumentObserver_EndLoad(nsIDocumentObserver *iface, nsIDocu
TRACE
(
"
\n
"
);
if
(
This
->
skip_mutation_notif
)
return
;
This
->
content_ready
=
TRUE
;
push_mutation_queue
(
This
,
MUTATION_ENDLOAD
,
NULL
);
}
...
...
dlls/mshtml/navigate.c
View file @
3c421a81
...
...
@@ -1105,6 +1105,11 @@ static void nsChannelBSC_destroy(BSCallback *bsc)
static
HRESULT
nsChannelBSC_start_binding
(
BSCallback
*
bsc
)
{
nsChannelBSC
*
This
=
NSCHANNELBSC_THIS
(
bsc
);
if
(
This
->
window
)
This
->
window
->
doc
->
skip_mutation_notif
=
FALSE
;
return
S_OK
;
}
...
...
dlls/mshtml/nsio.c
View file @
3c421a81
...
...
@@ -159,6 +159,7 @@ HRESULT load_nsuri(HTMLWindow *window, nsWineURI *uri, nsChannelBSC *channelbsc,
{
nsIWebNavigation
*
web_navigation
;
nsIDocShell
*
doc_shell
;
HTMLDocumentNode
*
doc
;
nsresult
nsres
;
nsres
=
get_nsinterface
((
nsISupports
*
)
window
->
nswindow
,
&
IID_nsIWebNavigation
,
(
void
**
)
&
web_navigation
);
...
...
@@ -174,9 +175,12 @@ HRESULT load_nsuri(HTMLWindow *window, nsWineURI *uri, nsChannelBSC *channelbsc,
return
E_FAIL
;
}
uri
->
channel_bsc
=
channelbsc
;
doc
=
window
->
doc
;
doc
->
skip_mutation_notif
=
TRUE
;
nsres
=
nsIDocShell_LoadURI
(
doc_shell
,
NSURI
(
uri
),
NULL
,
flags
,
FALSE
);
if
(
doc
==
window
->
doc
)
doc
->
skip_mutation_notif
=
FALSE
;
uri
->
channel_bsc
=
NULL
;
nsIDocShell_Release
(
doc_shell
);
if
(
NS_FAILED
(
nsres
))
{
...
...
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