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
e391dfc8
Commit
e391dfc8
authored
Sep 26, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 26, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't share nsscript reference with nsnode.
parent
23fc0dc8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
5 deletions
+27
-5
htmlscript.c
dlls/mshtml/htmlscript.c
+27
-5
No files found.
dlls/mshtml/htmlscript.c
View file @
e391dfc8
...
...
@@ -391,6 +391,26 @@ static HRESULT HTMLScriptElement_get_readystate(HTMLDOMNode *iface, BSTR *p)
return
IHTMLScriptElement_get_readyState
(
&
This
->
IHTMLScriptElement_iface
,
p
);
}
static
void
HTMLScriptElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLScriptElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsscript
)
note_cc_edge
((
nsISupports
*
)
This
->
nsscript
,
"This->nsscript"
,
cb
);
}
static
void
HTMLScriptElement_unlink
(
HTMLDOMNode
*
iface
)
{
HTMLScriptElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsscript
)
{
nsIDOMHTMLScriptElement
*
nsscript
=
This
->
nsscript
;
This
->
nsscript
=
NULL
;
nsIDOMHTMLScriptElement_Release
(
nsscript
);
}
}
static
const
NodeImplVtbl
HTMLScriptElementImplVtbl
=
{
HTMLScriptElement_QI
,
HTMLElement_destructor
,
...
...
@@ -403,7 +423,12 @@ static const NodeImplVtbl HTMLScriptElementImplVtbl = {
NULL
,
NULL
,
NULL
,
HTMLScriptElement_get_readystate
HTMLScriptElement_get_readystate
,
NULL
,
NULL
,
NULL
,
HTMLScriptElement_traverse
,
HTMLScriptElement_unlink
};
HRESULT
script_elem_from_nsscript
(
HTMLDocumentNode
*
doc
,
nsIDOMHTMLScriptElement
*
nsscript
,
HTMLScriptElement
**
ret
)
...
...
@@ -448,10 +473,7 @@ HRESULT HTMLScriptElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nsele
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLScriptElement_dispex
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLScriptElement
,
(
void
**
)
&
ret
->
nsscript
);
/* Share nsscript reference with nsnode */
assert
(
nsres
==
NS_OK
&&
(
nsIDOMNode
*
)
ret
->
nsscript
==
ret
->
element
.
node
.
nsnode
);
nsIDOMNode_Release
(
ret
->
element
.
node
.
nsnode
);
assert
(
nsres
==
NS_OK
);
*
elem
=
&
ret
->
element
;
return
S_OK
;
...
...
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