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
cac39acb
Commit
cac39acb
authored
Sep 25, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't share nsselect reference with nsnode.
parent
29205426
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
+25
-5
htmlselect.c
dlls/mshtml/htmlselect.c
+25
-5
No files found.
dlls/mshtml/htmlselect.c
View file @
cac39acb
...
...
@@ -615,6 +615,26 @@ static HRESULT HTMLSelectElement_invoke(HTMLDOMNode *iface, DISPID id, LCID lcid
return
S_OK
;
}
static
void
HTMLSelectElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLSelectElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsselect
)
note_cc_edge
((
nsISupports
*
)
This
->
nsselect
,
"This->nsselect"
,
cb
);
}
static
void
HTMLSelectElement_unlink
(
HTMLDOMNode
*
iface
)
{
HTMLSelectElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsselect
)
{
nsIDOMHTMLSelectElement
*
nsselect
=
This
->
nsselect
;
This
->
nsselect
=
NULL
;
nsIDOMHTMLSelectElement_Release
(
nsselect
);
}
}
static
const
NodeImplVtbl
HTMLSelectElementImplVtbl
=
{
HTMLSelectElement_QI
,
HTMLElement_destructor
,
...
...
@@ -629,7 +649,10 @@ static const NodeImplVtbl HTMLSelectElementImplVtbl = {
NULL
,
NULL
,
HTMLSelectElement_get_dispid
,
HTMLSelectElement_invoke
HTMLSelectElement_invoke
,
NULL
,
HTMLSelectElement_traverse
,
HTMLSelectElement_unlink
};
static
const
tid_t
HTMLSelectElement_tids
[]
=
{
...
...
@@ -661,10 +684,7 @@ HRESULT HTMLSelectElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nsele
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLSelectElement
,
(
void
**
)
&
ret
->
nsselect
);
/* Share nsselect reference with nsnode */
assert
(
nsres
==
NS_OK
&&
(
nsIDOMNode
*
)
ret
->
nsselect
==
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