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
caada38f
Commit
caada38f
authored
Jun 27, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Share nsdoc reference with nsnode.
parent
db244a80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
htmldoc.c
dlls/mshtml/htmldoc.c
+7
-5
No files found.
dlls/mshtml/htmldoc.c
View file @
caada38f
...
...
@@ -20,6 +20,7 @@
#include <stdarg.h>
#include <stdio.h>
#include <assert.h>
#define COBJMACROS
...
...
@@ -2084,10 +2085,8 @@ static void HTMLDocumentNode_destructor(HTMLDOMNode *iface)
while
(
!
list_empty
(
&
This
->
plugin_hosts
))
detach_plugin_host
(
LIST_ENTRY
(
list_head
(
&
This
->
plugin_hosts
),
PluginHost
,
entry
));
if
(
This
->
nsdoc
)
{
if
(
This
->
nsdoc
)
release_document_mutation
(
This
);
nsIDOMHTMLDocument_Release
(
This
->
nsdoc
);
}
heap_free
(
This
->
event_vector
);
destroy_htmldoc
(
&
This
->
basedoc
);
...
...
@@ -2236,12 +2235,15 @@ HRESULT create_doc_from_nsdoc(nsIDOMHTMLDocument *nsdoc, HTMLDocumentObj *doc_ob
if
(
!
doc_obj
->
basedoc
.
window
||
window
==
doc_obj
->
basedoc
.
window
)
doc
->
basedoc
.
cp_container
.
forward_container
=
&
doc_obj
->
basedoc
.
cp_container
;
nsIDOMHTMLDocument_AddRef
(
nsdoc
);
HTMLDOMNode_Init
(
doc
,
&
doc
->
node
,
(
nsIDOMNode
*
)
nsdoc
);
/* No AddRef, share the reference with nsnode */
assert
((
nsIDOMNode
*
)
nsdoc
==
doc
->
node
.
nsnode
);
doc
->
nsdoc
=
nsdoc
;
init_document_mutation
(
doc
);
doc_init_events
(
doc
);
HTMLDOMNode_Init
(
doc
,
&
doc
->
node
,
(
nsIDOMNode
*
)
nsdoc
);
doc
->
node
.
vtbl
=
&
HTMLDocumentNodeImplVtbl
;
doc
->
node
.
cp_container
=
&
doc
->
basedoc
.
cp_container
;
...
...
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