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
cf8eacf1
Commit
cf8eacf1
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 nsbutton reference with nsnode.
parent
1e9f3392
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
5 deletions
+29
-5
htmlinput.c
dlls/mshtml/htmlinput.c
+29
-5
No files found.
dlls/mshtml/htmlinput.c
View file @
cf8eacf1
...
...
@@ -1759,6 +1759,26 @@ static HRESULT HTMLButtonElementImpl_get_disabled(HTMLDOMNode *iface, VARIANT_BO
return
IHTMLButtonElement_get_disabled
(
&
This
->
IHTMLButtonElement_iface
,
p
);
}
static
void
HTMLButtonElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLButtonElement
*
This
=
button_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsbutton
)
note_cc_edge
((
nsISupports
*
)
This
->
nsbutton
,
"This->nsbutton"
,
cb
);
}
static
void
HTMLButtonElement_unlink
(
HTMLDOMNode
*
iface
)
{
HTMLButtonElement
*
This
=
button_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsbutton
)
{
nsIDOMHTMLButtonElement
*
nsbutton
=
This
->
nsbutton
;
This
->
nsbutton
=
NULL
;
nsIDOMHTMLButtonElement_Release
(
nsbutton
);
}
}
static
const
NodeImplVtbl
HTMLButtonElementImplVtbl
=
{
HTMLButtonElement_QI
,
HTMLElement_destructor
,
...
...
@@ -1769,7 +1789,14 @@ static const NodeImplVtbl HTMLButtonElementImplVtbl = {
NULL
,
NULL
,
HTMLButtonElementImpl_put_disabled
,
HTMLButtonElementImpl_get_disabled
HTMLButtonElementImpl_get_disabled
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
HTMLButtonElement_traverse
,
HTMLButtonElement_unlink
};
static
const
tid_t
HTMLButtonElement_iface_tids
[]
=
{
...
...
@@ -1800,10 +1827,7 @@ HRESULT HTMLButtonElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nsele
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLButtonElement_dispex
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLButtonElement
,
(
void
**
)
&
ret
->
nsbutton
);
/* Share nsbutton reference with nsnode */
assert
(
nsres
==
NS_OK
&&
(
nsIDOMNode
*
)
ret
->
nsbutton
==
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