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
c0f8d17c
Commit
c0f8d17c
authored
Sep 24, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't share nsform reference with nsnode.
parent
c5b9bdc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
+25
-5
htmlform.c
dlls/mshtml/htmlform.c
+25
-5
No files found.
dlls/mshtml/htmlform.c
View file @
c0f8d17c
...
...
@@ -726,6 +726,26 @@ static HRESULT HTMLFormElement_handle_event(HTMLDOMNode *iface, eventid_t eid, n
return
HTMLElement_handle_event
(
&
This
->
element
.
node
,
eid
,
event
,
prevent_default
);
}
static
void
HTMLFormElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLFormElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsform
)
note_cc_edge
((
nsISupports
*
)
This
->
nsform
,
"This->nsform"
,
cb
);
}
static
void
HTMLFormElement_unlink
(
HTMLDOMNode
*
iface
)
{
HTMLFormElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsform
)
{
nsIDOMHTMLFormElement
*
nsform
=
This
->
nsform
;
This
->
nsform
=
NULL
;
nsIDOMHTMLFormElement_Release
(
nsform
);
}
}
static
const
NodeImplVtbl
HTMLFormElementImplVtbl
=
{
HTMLFormElement_QI
,
HTMLElement_destructor
,
...
...
@@ -740,7 +760,10 @@ static const NodeImplVtbl HTMLFormElementImplVtbl = {
NULL
,
NULL
,
HTMLFormElement_get_dispid
,
HTMLFormElement_invoke
HTMLFormElement_invoke
,
NULL
,
HTMLFormElement_traverse
,
HTMLFormElement_unlink
};
static
const
tid_t
HTMLFormElement_iface_tids
[]
=
{
...
...
@@ -771,10 +794,7 @@ HRESULT HTMLFormElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem,
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLFormElement_dispex
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLFormElement
,
(
void
**
)
&
ret
->
nsform
);
/* Share the reference with nsnode */
assert
(
nsres
==
NS_OK
&&
(
nsIDOMNode
*
)
ret
->
nsform
==
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